summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-10 14:07:40 +0800
committerchai <chaifix@163.com>2022-03-10 14:07:40 +0800
commit22891bf59032ba88262824255a706d652031384b (patch)
tree7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator
parent8b04ea73e540067f83870b61d89db4868fea5e8a (diff)
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator')
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs53
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/CrossFade.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs45
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetApplyRootMotion.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs48
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetBoolParameter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs45
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaPosition.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs46
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetDeltaRotation.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs48
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetFloatParameter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs45
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetGravityWeight.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs48
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetIntegerParameter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs48
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetLayerWeight.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs45
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetSpeed.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs28
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/GetStringToHash.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs44
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/InterruptMatchTarget.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs42
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsInTransition.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs45
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsName.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs42
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/IsParameterControlledByCurve.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs62
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/MatchTarget.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs50
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/Play.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs44
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetApplyRootMotion.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs62
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetBoolParameter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs63
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetFloatParameter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs63
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetIntegerParameter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs47
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLayerWeight.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs53
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtPosition.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs66
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetLookAtWeight.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs44
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetSpeed.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs44
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/SetTrigger.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs41
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartPlayback.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs44
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StartRecording.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs41
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopPlayback.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs41
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator/StopRecording.cs.meta8
60 files changed, 0 insertions, 1677 deletions
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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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<Animator>();
- 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: