From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Runtime/Basic Tasks/Input/GetAxisRaw.cs | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs') 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 -- cgit v1.1-26-g67d0