summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs')
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs37
1 files changed, 0 insertions, 37 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs
deleted file mode 100644
index 3a28cd38..00000000
--- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the raw value of the specified axis and stores it in a float.")]
- public class GetAxisRaw : Action
- {
- [Tooltip("The name of the axis")]
- public SharedString axisName;
- [Tooltip("Axis values are in the range -1 to 1. Use the multiplier to set a larger range")]
- public SharedFloat multiplier;
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- var axisValue = Input.GetAxis(axisName.Value);
-
- // if variable set to none, assume multiplier of 1
- if (!multiplier.IsNone) {
- axisValue *= multiplier.Value;
- }
-
- storeResult.Value = axisValue;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- axisName = "";
- multiplier = 1.0f;
- storeResult = 0;
- }
- }
-} \ No newline at end of file