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/Animator/CrossFade.cs | 53 ----------------- .../Runtime/Basic Tasks/Animator/CrossFade.cs.meta | 8 --- .../Basic Tasks/Animator/GetApplyRootMotion.cs | 45 --------------- .../Animator/GetApplyRootMotion.cs.meta | 8 --- .../Basic Tasks/Animator/GetBoolParameter.cs | 48 ---------------- .../Basic Tasks/Animator/GetBoolParameter.cs.meta | 8 --- .../Basic Tasks/Animator/GetDeltaPosition.cs | 45 --------------- .../Basic Tasks/Animator/GetDeltaPosition.cs.meta | 8 --- .../Basic Tasks/Animator/GetDeltaRotation.cs | 46 --------------- .../Basic Tasks/Animator/GetDeltaRotation.cs.meta | 8 --- .../Basic Tasks/Animator/GetFloatParameter.cs | 48 ---------------- .../Basic Tasks/Animator/GetFloatParameter.cs.meta | 8 --- .../Basic Tasks/Animator/GetGravityWeight.cs | 45 --------------- .../Basic Tasks/Animator/GetGravityWeight.cs.meta | 8 --- .../Basic Tasks/Animator/GetIntegerParameter.cs | 48 ---------------- .../Animator/GetIntegerParameter.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/GetLayerWeight.cs | 48 ---------------- .../Basic Tasks/Animator/GetLayerWeight.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/GetSpeed.cs | 45 --------------- .../Runtime/Basic Tasks/Animator/GetSpeed.cs.meta | 8 --- .../Basic Tasks/Animator/GetStringToHash.cs | 28 --------- .../Basic Tasks/Animator/GetStringToHash.cs.meta | 8 --- .../Basic Tasks/Animator/InterruptMatchTarget.cs | 44 --------------- .../Animator/InterruptMatchTarget.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/IsInTransition.cs | 42 -------------- .../Basic Tasks/Animator/IsInTransition.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/IsName.cs | 45 --------------- .../Runtime/Basic Tasks/Animator/IsName.cs.meta | 8 --- .../Animator/IsParameterControlledByCurve.cs | 42 -------------- .../Animator/IsParameterControlledByCurve.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/MatchTarget.cs | 62 -------------------- .../Basic Tasks/Animator/MatchTarget.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/Play.cs | 50 ---------------- .../Runtime/Basic Tasks/Animator/Play.cs.meta | 8 --- .../Basic Tasks/Animator/SetApplyRootMotion.cs | 44 --------------- .../Animator/SetApplyRootMotion.cs.meta | 8 --- .../Basic Tasks/Animator/SetBoolParameter.cs | 62 -------------------- .../Basic Tasks/Animator/SetBoolParameter.cs.meta | 8 --- .../Basic Tasks/Animator/SetFloatParameter.cs | 63 --------------------- .../Basic Tasks/Animator/SetFloatParameter.cs.meta | 8 --- .../Basic Tasks/Animator/SetIntegerParameter.cs | 63 --------------------- .../Animator/SetIntegerParameter.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/SetLayerWeight.cs | 47 --------------- .../Basic Tasks/Animator/SetLayerWeight.cs.meta | 8 --- .../Basic Tasks/Animator/SetLookAtPosition.cs | 53 ----------------- .../Basic Tasks/Animator/SetLookAtPosition.cs.meta | 8 --- .../Basic Tasks/Animator/SetLookAtWeight.cs | 66 ---------------------- .../Basic Tasks/Animator/SetLookAtWeight.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/SetSpeed.cs | 44 --------------- .../Runtime/Basic Tasks/Animator/SetSpeed.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/SetTrigger.cs | 44 --------------- .../Basic Tasks/Animator/SetTrigger.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/StartPlayback.cs | 41 -------------- .../Basic Tasks/Animator/StartPlayback.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/StartRecording.cs | 44 --------------- .../Basic Tasks/Animator/StartRecording.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/StopPlayback.cs | 41 -------------- .../Basic Tasks/Animator/StopPlayback.cs.meta | 8 --- .../Runtime/Basic Tasks/Animator/StopRecording.cs | 41 -------------- .../Basic Tasks/Animator/StopRecording.cs.meta | 8 --- 60 files changed, 1677 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator') diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs deleted file mode 100644 index 7080ce76..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Creates a dynamic transition between the current state and the destination state. Returns Success.")] - public class CrossFade : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the state")] - public SharedString stateName; - [Tooltip("The duration of the transition. Value is in source state normalized time")] - public SharedFloat transitionDuration; - [Tooltip("The layer where the state is")] - public int layer = -1; - [Tooltip("The normalized time at which the state will play")] - public float normalizedTime = float.NegativeInfinity; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.CrossFade(stateName.Value, transitionDuration.Value, layer, normalizedTime); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - stateName = ""; - transitionDuration = 0; - layer = -1; - normalizedTime = float.NegativeInfinity; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta deleted file mode 100644 index d67ad7da..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 09e5aba2adc719f42876293bcbea7819 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs deleted file mode 100644 index 7ec1ecab..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stores if root motion is applied. Returns Success.")] - public class GetApplyRootMotion : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Is root motion applied?")] - [RequiredField] - public SharedBool storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.applyRootMotion; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta deleted file mode 100644 index de18f15c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 872c96b3950799546863110b7e54d0c8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs deleted file mode 100644 index 83b5903b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stores the bool parameter on an animator. Returns Success.")] - public class GetBoolParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the bool parameter")] - [RequiredField] - public SharedBool storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetBool(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - storeValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta deleted file mode 100644 index daf50ea0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2aeb7ebc08541794aa3ed0343c49c9f9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs deleted file mode 100644 index aefb2595..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Gets the avatar delta position for the last evaluated frame. Returns Success.")] - public class GetDeltaPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The avatar delta position")] - [RequiredField] - public SharedVector3 storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.deltaPosition; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta deleted file mode 100644 index 472f73da..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9c44c26d5d6b3484397b8aa6ed658b1e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs deleted file mode 100644 index 565ab751..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Gets the avatar delta rotation for the last evaluated frame. Returns Success.")] - public class GetDeltaRotation : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The avatar delta rotation")] - [RequiredField] - public SharedQuaternion storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.deltaRotation; - - return TaskStatus.Success; - } - - public override void OnReset() - { - if (storeValue != null) { - storeValue.Value = Quaternion.identity; - } - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta deleted file mode 100644 index a26ba42a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f120073dca714344495aa139eea16e2b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs deleted file mode 100644 index 6e28cb9c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stores the float parameter on an animator. Returns Success.")] - public class GetFloatParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the float parameter")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetFloat(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta deleted file mode 100644 index 3dcbccc5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d33dbb5444b5bbe44bb200e39823cfe1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs deleted file mode 100644 index a1bb9508..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stores the current gravity weight based on current animations that are played. Returns Success.")] - public class GetGravityWeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The value of the gravity weight")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.gravityWeight; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta deleted file mode 100644 index 21b687ce..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 945593329da80b44898e7e1ae1883d07 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs deleted file mode 100644 index ce424589..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stores the integer parameter on an animator. Returns Success.")] - public class GetIntegerParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the integer parameter")] - [RequiredField] - public SharedInt storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetInteger(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta deleted file mode 100644 index 6834594b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c8640eaeae64c2e48ba85336474d59d8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs deleted file mode 100644 index 679dc943..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stores the layer's weight. Returns Success.")] - public class GetLayerWeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The index of the layer")] - public SharedInt index; - [Tooltip("The value of the float parameter")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.GetLayerWeight(index.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta deleted file mode 100644 index 4c0e6cab..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 346c4295a827d9e4c8029cd29a8e18ca -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs deleted file mode 100644 index 5382e259..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stores the playback speed of the animator. 1 is normal playback speed. Returns Success.")] - public class GetSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the Animator")] - [RequiredField] - public SharedFloat storeValue; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - storeValue.Value = animator.speed; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta deleted file mode 100644 index c4d6ee6b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f87648f776ab12c45883b01e9bebc6a3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs deleted file mode 100644 index a7a9843b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Converts the state name to its corresponding hash code. Returns Success.")] - public class GetStringToHash : Action - { - [Tooltip("The name of the state to convert to a hash code")] - public SharedString stateName; - [Tooltip("The hash value")] - [RequiredField] - public SharedInt storeValue; - - public override TaskStatus OnUpdate() - { - storeValue.Value = Animator.StringToHash(stateName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - stateName = ""; - storeValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta deleted file mode 100644 index f0f50384..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 234dcf26bcb550043b3b5de33f0e6a11 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs deleted file mode 100644 index d958848e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Interrupts the automatic target matching. Returns Success.")] - public class InterruptMatchTarget : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("CompleteMatch will make the gameobject match the target completely at the next frame")] - public bool completeMatch = true; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.InterruptMatchTarget(completeMatch); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - completeMatch = true; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta deleted file mode 100644 index 0753ae2d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 766d802f8842a2945b11253f60d431bb -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs deleted file mode 100644 index e9366eaa..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Returns success if the specified AnimatorController layer in a transition.")] - public class IsInTransition : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The layer's index")] - public SharedInt index; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return animator.IsInTransition(index.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta deleted file mode 100644 index 39c1452c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 48c086aaf693a604d8b83eabac3b568e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs deleted file mode 100644 index 38869983..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Returns success if the specified name matches the name of the active state.")] - public class IsName : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The layer's index")] - public SharedInt index; - [Tooltip("The state name to compare")] - public SharedString name; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return animator.GetCurrentAnimatorStateInfo(index.Value).IsName(name.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - name = ""; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta deleted file mode 100644 index 7f8263ae..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 96051e2f6a0e7ea42a493e6245e4ccde -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs deleted file mode 100644 index 84664930..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Returns success if the specified parameter is controlled by an additional curve on an animation.")] - public class IsParameterControlledByCurve : Conditional - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return animator.IsParameterControlledByCurve(paramaterName.Value) ? TaskStatus.Success : TaskStatus.Failure; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta deleted file mode 100644 index 80412d1a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c5eb4141402ab7c4abb1d4a5c687a757 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs deleted file mode 100644 index c0137247..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs +++ /dev/null @@ -1,62 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Automatically adjust the gameobject position and rotation so that the AvatarTarget reaches the matchPosition when the current state is at the specified progress. Returns Success.")] - public class MatchTarget : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position we want the body part to reach")] - public SharedVector3 matchPosition; - [Tooltip("The rotation in which we want the body part to be")] - public SharedQuaternion matchRotation; - [Tooltip("The body part that is involved in the match")] - public AvatarTarget targetBodyPart; - [Tooltip("Weights for matching position")] - public Vector3 weightMaskPosition; - [Tooltip("Weights for matching rotation")] - public float weightMaskRotation; - [Tooltip("Start time within the animation clip")] - public float startNormalizedTime; - [Tooltip("End time within the animation clip")] - public float targetNormalizedTime = 1; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.MatchTarget(matchPosition.Value, matchRotation.Value, targetBodyPart, new MatchTargetWeightMask(weightMaskPosition, weightMaskRotation), startNormalizedTime, targetNormalizedTime); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - matchPosition = Vector3.zero; - matchRotation = Quaternion.identity; - targetBodyPart = AvatarTarget.Root; - weightMaskPosition = Vector3.zero; - weightMaskRotation = 0; - startNormalizedTime = 0; - targetNormalizedTime = 1; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta deleted file mode 100644 index d4cfe707..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e0e788b711539ed4dad258780be29de6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs deleted file mode 100644 index e76934df..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs +++ /dev/null @@ -1,50 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Plays an animator state. Returns Success.")] - public class Play : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the state")] - public SharedString stateName; - [Tooltip("The layer where the state is")] - public int layer = -1; - [Tooltip("The normalized time at which the state will play")] - public float normalizedTime = float.NegativeInfinity; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.Play(stateName.Value, layer, normalizedTime); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - stateName = ""; - layer = -1; - normalizedTime = float.NegativeInfinity; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta deleted file mode 100644 index 5d05a683..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a62df911d37cd8349b0168f875cd58ea -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs deleted file mode 100644 index c6c81be8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets if root motion is applied. Returns Success.")] - public class SetApplyRootMotion : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("Is root motion applied?")] - public SharedBool rootMotion; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.applyRootMotion = rootMotion.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - rootMotion = false; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta deleted file mode 100644 index dac11abd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f10479b97efcbb94a8089a12bf891b5b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs deleted file mode 100644 index 2f8a93c5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs +++ /dev/null @@ -1,62 +0,0 @@ -using UnityEngine; -using System.Collections; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the bool parameter on an animator. Returns Success.")] - public class SetBoolParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the bool parameter")] - public SharedBool boolValue; - [Tooltip("Should the value be reverted back to its original value after it has been set?")] - public bool setOnce; - - private int hashID; - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - hashID = UnityEngine.Animator.StringToHash(paramaterName.Value); - - bool prevValue = animator.GetBool(hashID); - animator.SetBool(hashID, boolValue.Value); - if (setOnce) { - StartCoroutine(ResetValue(prevValue)); - } - return TaskStatus.Success; - } - - public IEnumerator ResetValue(bool origVale) - { - yield return null; - animator.SetBool(hashID, origVale); - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - boolValue = false; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta deleted file mode 100644 index 7bd49fa8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 04e0905e87bf90a408551067942c08c7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs deleted file mode 100644 index 77093432..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs +++ /dev/null @@ -1,63 +0,0 @@ -using UnityEngine; -using System.Collections; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the float parameter on an animator. Returns Success.")] - public class SetFloatParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the float parameter")] - public SharedFloat floatValue; - [Tooltip("Should the value be reverted back to its original value after it has been set?")] - public bool setOnce; - - private int hashID; - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - hashID = UnityEngine.Animator.StringToHash(paramaterName.Value); - - float prevValue = animator.GetFloat(hashID); - animator.SetFloat(hashID, floatValue.Value); - if (setOnce) { - StartCoroutine(ResetValue(prevValue)); - } - - return TaskStatus.Success; - } - - public IEnumerator ResetValue(float origVale) - { - yield return null; - animator.SetFloat(hashID, origVale); - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - floatValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta deleted file mode 100644 index 9e216986..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b601abdc989d2ce4f8dc0d3434705814 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs deleted file mode 100644 index 39fdcca7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs +++ /dev/null @@ -1,63 +0,0 @@ -using UnityEngine; -using System.Collections; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the int parameter on an animator. Returns Success.")] - public class SetIntegerParameter : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - [Tooltip("The value of the int parameter")] - public SharedInt intValue; - [Tooltip("Should the value be reverted back to its original value after it has been set?")] - public bool setOnce; - - private int hashID; - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - hashID = UnityEngine.Animator.StringToHash(paramaterName.Value); - - int prevValue = animator.GetInteger(hashID); - animator.SetInteger(hashID, intValue.Value); - if (setOnce) { - StartCoroutine(ResetValue(prevValue)); - } - - return TaskStatus.Success; - } - - public IEnumerator ResetValue(int origVale) - { - yield return null; - animator.SetInteger(hashID, origVale); - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName = ""; - intValue = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta deleted file mode 100644 index ded6b0ed..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 07345b9144172a74892b176413bf9ac3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs deleted file mode 100644 index ae5b529f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the layer's current weight. Returns Success.")] - public class SetLayerWeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The layer's index")] - public SharedInt index; - [Tooltip("The weight of the layer")] - public SharedFloat weight; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.SetLayerWeight(index.Value, weight.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - index = 0; - weight = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta deleted file mode 100644 index 6ee4ea45..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 979ffd79261d4bb499331ba9fa80ed7d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs deleted file mode 100644 index 9137ec56..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the look at position. Returns Success.")] - public class SetLookAtPosition : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The position to lookAt")] - public SharedVector3 position; - - private Animator animator; - private GameObject prevGameObject; - private bool positionSet; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - positionSet = false; - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return positionSet ? TaskStatus.Success : TaskStatus.Running; - } - - public override void OnAnimatorIK() - { - if (animator == null) { - return; - } - animator.SetLookAtPosition(position.Value); - positionSet = true; - } - - public override void OnReset() - { - targetGameObject = null; - position = Vector3.zero; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta deleted file mode 100644 index 9cca866d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 31c4894aafa2b7f40984915713cff50b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs deleted file mode 100644 index f6b9102a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs +++ /dev/null @@ -1,66 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the look at weight. Returns success immediately after.")] - public class SetLookAtWeight : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("(0-1) the global weight of the LookAt, multiplier for other parameters.")] - public SharedFloat weight; - [Tooltip("(0-1) determines how much the body is involved in the LookAt.")] - public float bodyWeight; - [Tooltip("(0-1) determines how much the head is involved in the LookAt.")] - public float headWeight = 1; - [Tooltip("(0-1) determines how much the eyes are involved in the LookAt.")] - public float eyesWeight; - [Tooltip("(0-1) 0.0 means the character is completely unrestrained in motion, 1.0 means he's completely clamped " + - "(look at becomes impossible), and 0.5 means he'll be able to move on half of the possible range (180 degrees).")] - public float clampWeight = 0.5f; - - private Animator animator; - private GameObject prevGameObject; - private bool weightSet; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - weightSet = false; - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - return weightSet ? TaskStatus.Success : TaskStatus.Running; - } - - public override void OnAnimatorIK() - { - if (animator == null) { - return; - } - animator.SetLookAtWeight(weight.Value, bodyWeight, headWeight, eyesWeight, clampWeight); - weightSet = true; - } - - public override void OnReset() - { - targetGameObject = null; - weight = 0; - bodyWeight = 0; - headWeight = 1; - eyesWeight = 0; - clampWeight = 0.5f; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta deleted file mode 100644 index f69692c9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1d700204dde35cd4c9e5a8553089127e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs deleted file mode 100644 index e38f45ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the playback speed of the Animator. 1 is normal playback speed. Returns Success.")] - public class SetSpeed : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The playback speed of the Animator")] - public SharedFloat speed; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.speed = speed.Value; - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - speed = 0; - } - } -} \ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta deleted file mode 100644 index f30c47bd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b5cd3c9afb48ee541afcce2dade6bc6a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs deleted file mode 100644 index 085fe89b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets a trigger parameter to active or inactive. Returns Success.")] - public class SetTrigger : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The name of the parameter")] - public SharedString paramaterName; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.SetTrigger(paramaterName.Value); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - paramaterName.Value = ""; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta deleted file mode 100644 index fc5f8f1e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 004807d2b68cad7459f6d84ce1274c16 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs deleted file mode 100644 index 6c35b0e9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the animator in playback mode.")] - public class StartPlayback : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StartPlayback(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta deleted file mode 100644 index 7332f68e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 46d4b19160ba8774ea6100dda4288753 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs deleted file mode 100644 index f9ebf502..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Sets the animator in recording mode. Returns Success.")] - public class StartRecording : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - [Tooltip("The number of frames (updates) that will be recorded")] - public int frameCount; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StartRecording(frameCount); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - frameCount = 0; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta deleted file mode 100644 index 87f0ddb2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d6f14b502ed889444a0e44e8cb06e767 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs deleted file mode 100644 index 8096b930..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stops the animator playback mode. Returns Success.")] - public class StopPlayback : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StopPlayback(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta deleted file mode 100644 index eb10c87f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7daa3c083e51ad44a8c8b05bb4e70689 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs deleted file mode 100644 index cd531c7f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimator -{ - [TaskCategory("Basic/Animator")] - [TaskDescription("Stops animator record mode. Returns Success.")] - public class StopRecording : Action - { - [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] - public SharedGameObject targetGameObject; - - private Animator animator; - private GameObject prevGameObject; - - public override void OnStart() - { - var currentGameObject = GetDefaultGameObject(targetGameObject.Value); - if (currentGameObject != prevGameObject) { - animator = currentGameObject.GetComponent(); - prevGameObject = currentGameObject; - } - } - - public override TaskStatus OnUpdate() - { - if (animator == null) { - Debug.LogWarning("Animator is null"); - return TaskStatus.Failure; - } - - animator.StopRecording(); - - return TaskStatus.Success; - } - - public override void OnReset() - { - targetGameObject = null; - } - } -} diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta deleted file mode 100644 index d8001590..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c62c2817a5d72054caebff852d50ef17 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: -- cgit v1.1-26-g67d0