diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs')
-rw-r--r-- | Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs deleted file mode 100644 index 9bf51c68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the magnitude of the Vector3.")]
- public class GetMagnitude : Action
- {
- [Tooltip("The Vector3 to get the magnitude of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The magnitude of the vector")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector3Variable.Value.magnitude;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = Vector3.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file |