We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 727e9fc commit 0930bc0Copy full SHA for 0930bc0
Runtime/Scripts/Components/Axis.cs
@@ -7,7 +7,7 @@ namespace OC.Components
7
[SelectionBase]
8
[DisallowMultipleComponent]
9
[DefaultExecutionOrder(1000)]
10
- public class Axis : Actor, IInteractable
+ public class Axis : Actor, IInteractable, ICustomInspector
11
{
12
public Actor Actor
13
@@ -91,7 +91,15 @@ private void LateUpdate()
91
92
private void LocalUpdate(float deltaTime)
93
94
- if (_isActorValid) Target.Value = _actor.Value.Value;
+ if (_override)
95
+ {
96
+ Target.Value = _target;
97
+ }
98
+ else if (_isActorValid)
99
100
+ Target.Value = _actor.Value.Value;
101
102
+
103
_value.Value = _target.Value * _factor;
104
105
switch (_controlMode)
0 commit comments