summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs')
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs
deleted file mode 100644
index 11cd8165..00000000
--- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Lerp the angle by an amount.")]
- public class LerpAngle : Action
- {
- [Tooltip("The from value")]
- public SharedFloat fromValue;
- [Tooltip("The to value")]
- public SharedFloat toValue;
- [Tooltip("The amount to lerp")]
- public SharedFloat lerpAmount;
- [Tooltip("The lerp resut")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Mathf.LerpAngle(fromValue.Value, toValue.Value, lerpAmount.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromValue = toValue = lerpAmount = storeResult = 0;
- }
- }
-} \ No newline at end of file