diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks')
926 files changed, 0 insertions, 21395 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation.meta deleted file mode 100644 index b98c7eed..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: fa1395121fbad8b40934c69350e58065
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs deleted file mode 100644 index c37744a1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Blends the animation. Returns Success.")]
- public class Blend : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the animation")]
- public SharedString animationName;
- [Tooltip("The weight the animation should blend to")]
- public float targetWeight = 1;
- [Tooltip("The amount of time it takes to blend")]
- public float fadeLength = 0.3f;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- animation.Blend(animationName.Value, targetWeight, fadeLength);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName = "";
- targetWeight = 1;
- fadeLength = 0.3f;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs.meta deleted file mode 100644 index 191ac404..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Blend.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: dc0640154eb6b674e89f4a2ec1632696
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs deleted file mode 100644 index 38fcc324..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Fades the animation over a period of time and fades other animations out. 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 animation")]
- public SharedString animationName;
- [Tooltip("The amount of time it takes to blend")]
- public float fadeLength = 0.3f;
- [Tooltip("The play mode of the animation")]
- public PlayMode playMode = PlayMode.StopSameLayer;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- animation.CrossFade(animationName.Value, fadeLength, playMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName.Value = "";
- fadeLength = 0.3f;
- playMode = PlayMode.StopSameLayer;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs.meta deleted file mode 100644 index dd091e17..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFade.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 57d9d1509d13e454caae6f3219c83cc7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs deleted file mode 100644 index 4c2e9c89..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs +++ /dev/null @@ -1,54 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Cross fades an animation after previous animations has finished playing. Returns Success.")]
- public class CrossFadeQueued : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the animation")]
- public SharedString animationName;
- [Tooltip("The amount of time it takes to blend")]
- public float fadeLength = 0.3f;
- [Tooltip("Specifies when the animation should start playing")]
- public QueueMode queue = QueueMode.CompleteOthers;
- [Tooltip("The play mode of the animation")]
- public PlayMode playMode = PlayMode.StopSameLayer;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- animation.CrossFadeQueued(animationName.Value, fadeLength, queue, playMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName.Value = "";
- fadeLength = 0.3f;
- queue = QueueMode.CompleteOthers;
- playMode = PlayMode.StopSameLayer;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs.meta deleted file mode 100644 index fda00b91..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/CrossFadeQueued.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c1cc2a160ee1978488696564200b3c25
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs deleted file mode 100644 index 5f0d49de..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Stores the animate physics value. Returns Success.")]
- public class GetAnimatePhysics : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Are the if animations are executed in the physics loop?")]
- [RequiredField]
- public SharedBool storeValue;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = animation.animatePhysics;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue.Value = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs.meta deleted file mode 100644 index 4bb05d26..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/GetAnimatePhysics.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b5bd2b0ed07f42142934568bd6813619
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs deleted file mode 100644 index f86a854b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Returns Success if the animation is currently playing.")]
- public class IsPlaying : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the animation")]
- public SharedString animationName;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- if (string.IsNullOrEmpty(animationName.Value)) {
- return animation.isPlaying ? TaskStatus.Success : TaskStatus.Failure;
- } else {
- return animation.IsPlaying(animationName.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName.Value = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs.meta deleted file mode 100644 index ac35dc24..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/IsPlaying.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ce80475167d230d4181baa69071465ff
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs deleted file mode 100644 index 4661c83d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs +++ /dev/null @@ -1,52 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Plays animation without any blending. 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 animation")]
- public SharedString animationName;
- [Tooltip("The play mode of the animation")]
- public PlayMode playMode = PlayMode.StopSameLayer;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- if (string.IsNullOrEmpty(animationName.Value)) {
- animation.Play();
- } else {
- animation.Play(animationName.Value, playMode);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName.Value = "";
- playMode = PlayMode.StopSameLayer;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs.meta deleted file mode 100644 index b89dbdf0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Play.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0b1bf3b05e79dcc468cf71b63d54a4cd
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs deleted file mode 100644 index 7be1b507..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Plays an animation after previous animations has finished playing. Returns Success.")]
- public class PlayQueued : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the animation")]
- public SharedString animationName;
- [Tooltip("Specifies when the animation should start playing")]
- public QueueMode queue = QueueMode.CompleteOthers;
- [Tooltip("The play mode of the animation")]
- public PlayMode playMode = PlayMode.StopSameLayer;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- animation.PlayQueued(animationName.Value, queue, playMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName.Value = "";
- queue = QueueMode.CompleteOthers;
- playMode = PlayMode.StopSameLayer;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs.meta deleted file mode 100644 index 5a578270..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/PlayQueued.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: bb55ee97bf8cb3d479de025d77a9c4b6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs deleted file mode 100644 index c8bc35b5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Rewinds an animation. Rewinds all animations if animationName is blank. Returns Success.")]
- public class Rewind : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the animation")]
- public SharedString animationName;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- if (string.IsNullOrEmpty(animationName.Value)) {
- animation.Rewind();
- } else {
- animation.Rewind(animationName.Value);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName.Value = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs.meta deleted file mode 100644 index 29a969f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Rewind.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 364beb9f6996556449b9f3e03db75290
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs deleted file mode 100644 index 3620122c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Samples animations at the current state. Returns Success.")]
- public class Sample : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- animation.Sample();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs.meta deleted file mode 100644 index ebb26237..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Sample.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2cc64c997b5d6e640af8cc9bd7cf1b5d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs deleted file mode 100644 index 14bdac19..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Sets animate physics to the specified value. Returns Success.")]
- public class SetAnimatePhysics : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Are animations executed in the physics loop?")]
- public SharedBool animatePhysics;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- animation.animatePhysics = animatePhysics.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animatePhysics.Value = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs.meta deleted file mode 100644 index dda3f075..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetAnimatePhysics.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f93fd0c7638add0468744d4f7249c1a7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs deleted file mode 100644 index 4194b81e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Sets the wrap mode to the specified value. Returns Success.")]
- public class SetWrapMode : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("How should time beyond the playback range of the clip be treated?")]
- public WrapMode wrapMode = WrapMode.Default;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- animation.wrapMode = wrapMode;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- wrapMode = WrapMode.Default;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs.meta deleted file mode 100644 index 7b815d1d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/SetWrapMode.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 39af69a1e220fc2419a5d34933029ff9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs deleted file mode 100644 index 8625b0bd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAnimation
-{
- [TaskCategory("Basic/Animation")]
- [TaskDescription("Stops an animation. Stops all animations if animationName is blank. Returns Success.")]
- public class Stop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the animation")]
- public SharedString animationName;
-
- // cache the animation component
- private Animation animation;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- animation = currentGameObject.GetComponent<Animation>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (animation == null) {
- Debug.LogWarning("Animation is null");
- return TaskStatus.Failure;
- }
-
- if (string.IsNullOrEmpty(animationName.Value)) {
- animation.Stop();
- } else {
- animation.Stop(animationName.Value);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- animationName = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs.meta deleted file mode 100644 index 8edc170a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animation/Stop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c3dca423f03e936449fdb622cac3f430
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator.meta deleted file mode 100644 index c33fce93..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Animator.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 0b46617b2906c0049b19ab613fae2882
-DefaultImporter:
- userData:
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:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource.meta deleted file mode 100644 index e4a0e09d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 8d2af13ebd5ef0b428b7ea2a3eb85c95
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs deleted file mode 100644 index e0906252..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the ignore listener pause value of the AudioSource. Returns Success.")]
- public class GetIgnoreListenerPause : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The ignore listener pause value of the AudioSource")]
- [RequiredField]
- public SharedBool storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.ignoreListenerPause;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = false;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta deleted file mode 100644 index aca007cf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerPause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b3bd7bb287fe91747bca60ebe3d53e87
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs deleted file mode 100644 index 12885ddf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the ignore listener volume value of the AudioSource. Returns Success.")]
- public class GetIgnoreListenerVolume : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The ignore listener volume value of the AudioSource")]
- [RequiredField]
- public SharedBool storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.ignoreListenerVolume;
-
- 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/AudioSource/GetIgnoreListenerVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs.meta deleted file mode 100644 index 5176b8f8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetIgnoreListenerVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c45986918364dfc4e9eca01d2839e2e4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs deleted file mode 100644 index c1cd0a7d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the loop value of the AudioSource. Returns Success.")]
- public class GetLoop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The loop value of the AudioSource")]
- [RequiredField]
- public SharedBool storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.loop;
-
- 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/AudioSource/GetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs.meta deleted file mode 100644 index a5d37f95..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 699b9d0d798a219459c6477d2c21d4ba
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs deleted file mode 100644 index cf8b9ed3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the max distance value of the AudioSource. Returns Success.")]
- public class GetMaxDistance : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The max distance value of the AudioSource")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.maxDistance;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta deleted file mode 100644 index 2cb3e832..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMaxDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3e2b2500d8e2b0c45825c0650f64eae2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs deleted file mode 100644 index 6fe9aed3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the min distance value of the AudioSource. Returns Success.")]
- public class GetMinDistance : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The min distance value of the AudioSource")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.minDistance;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta deleted file mode 100644 index 20401fd0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMinDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: cad762e82ef22644ca968b4a1c51eaec
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs deleted file mode 100644 index f2cee2f2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the mute value of the AudioSource. Returns Success.")]
- public class GetMute : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mute value of the AudioSource")]
- [RequiredField]
- public SharedBool storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.mute;
-
- 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/AudioSource/GetMute.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs.meta deleted file mode 100644 index 71acfb23..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetMute.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 51df88b2df77e294cb673105b1c36961
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs deleted file mode 100644 index 21ddf55d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the pitch value of the AudioSource. Returns Success.")]
- public class GetPitch : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The pitch value of the AudioSource")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.pitch;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta deleted file mode 100644 index c23193a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPitch.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 930fa7881ae9236449d90546f9922656
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs deleted file mode 100644 index bb519ef0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the priority value of the AudioSource. Returns Success.")]
- public class GetPriority : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The priority value of the AudioSource")]
- [RequiredField]
- public SharedInt storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.priority;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta deleted file mode 100644 index 4bf1ba3e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetPriority.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: de856d580ad945e4d846fa52d3d647cc
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs deleted file mode 100644 index a4b28d99..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the spread value of the AudioSource. Returns Success.")]
- public class GetSpread : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The spread value of the AudioSource")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.spread;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta deleted file mode 100644 index 8616ca5f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetSpread.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ba6a60eccf688514392e782348b84628
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs deleted file mode 100644 index 1838133a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the time value of the AudioSource. Returns Success.")]
- public class GetTime : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The time value of the AudioSource")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.time;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta deleted file mode 100644 index 3d1c547f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 600c95fc760afa140bd0a7b98bd5071f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs deleted file mode 100644 index 367f4b3f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the time samples value of the AudioSource. Returns Success.")]
- public class GetTimeSamples : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The time samples value of the AudioSource")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.timeSamples;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta deleted file mode 100644 index 40d3ea23..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetTimeSamples.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: af34adc5779f33442909ff32140dcdd4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs deleted file mode 100644 index 4610f4ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stores the volume value of the AudioSource. Returns Success.")]
- public class GetVolume : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The volume value of the AudioSource")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = audioSource.volume;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta deleted file mode 100644 index fdb362b6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/GetVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: aad3b2c644baeb646b0b33b7317413d4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs deleted file mode 100644 index 7b457902..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Returns Success if the AudioClip is playing, otherwise Failure.")]
- public class IsPlaying : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- return audioSource.isPlaying ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta deleted file mode 100644 index e830c656..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/IsPlaying.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 20fb79d98326b794fb309a291613cab4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs deleted file mode 100644 index 1d5347ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Pauses the audio clip. Returns Success.")]
- public class Pause : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.Pause();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta deleted file mode 100644 index 140e52a3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Pause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 91db8dd58e79db745acc39f3f52da88e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs deleted file mode 100644 index 3e711027..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Plays the audio clip. Returns Success.")]
- public class Play : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.Play();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta deleted file mode 100644 index 52452b5a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Play.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7ac8cfb80c6a44c42b4ac4eef6f29bd5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs deleted file mode 100644 index 7618bd7c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Plays the audio clip with a delay specified in seconds. Returns Success.")]
- public class PlayDelayed : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Delay time specified in seconds")]
- public SharedFloat delay = 0;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.PlayDelayed(delay.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- delay = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta deleted file mode 100644 index fb881a38..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayDelayed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0125706a59bb7974eb3d425d3869779a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs deleted file mode 100644 index 1d04f8e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Plays an AudioClip, and scales the AudioSource volume by volumeScale. Returns Success.")]
- public class PlayOneShot : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The clip being played")]
- public SharedObject clip;
- [Tooltip("The scale of the volume (0-1)")]
- public SharedFloat volumeScale = 1;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.PlayOneShot((AudioClip)clip.Value, volumeScale.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- clip = null;
- volumeScale = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta deleted file mode 100644 index 4bc09ae8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayOneShot.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 112c969d16008464f96ce23aa5b32486
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs deleted file mode 100644 index d854790d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Plays the audio clip with a delay specified in seconds. Returns Success.")]
- public class PlayScheduled : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Time in seconds on the absolute time-line that AudioSettings.dspTime refers to for when the sound should start playing")]
- public SharedFloat time = 0;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.PlayScheduled(time.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- time = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta deleted file mode 100644 index 8c3e45f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/PlayScheduled.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 08d431471ffd8954197b88b698f0d424
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs deleted file mode 100644 index 71941195..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the clip value of the AudioSource. Returns Success.")]
- public class SetAudioClip : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The AudioSource clip")]
- public AudioClip audioClip;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.clip = audioClip;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- audioClip = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta deleted file mode 100644 index df8eac5c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetAudioClip.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f52d9d404f7deab448e4f5c2bb3f7892
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs deleted file mode 100644 index 1b0f14b3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the ignore listener volume value of the AudioSource. Returns Success.")]
- public class SetIgnoreListenerVolume : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The ignore listener volume value of the AudioSource")]
- public SharedBool ignoreListenerVolume;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.ignoreListenerVolume = ignoreListenerVolume.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- ignoreListenerVolume = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta deleted file mode 100644 index e6c2790c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerPause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d617db8232463c444a8a3159da109798
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs deleted file mode 100644 index 787637b2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the ignore listener pause value of the AudioSource. Returns Success.")]
- public class SetIgnoreListenerPause : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The ignore listener pause value of the AudioSource")]
- public SharedBool ignoreListenerPause;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.ignoreListenerPause = ignoreListenerPause.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- ignoreListenerPause = false;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta deleted file mode 100644 index 6b86a289..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetIgnoreListenerVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6f1f5937bfa03484296c0fb5a9ce9b29
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs deleted file mode 100644 index 38a47ba3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the loop value of the AudioSource. Returns Success.")]
- public class SetLoop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The loop value of the AudioSource")]
- public SharedBool loop;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.loop = loop.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- loop = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta deleted file mode 100644 index d8e3cc04..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 50536bd6b5fa6924bb7217dd3b6e3f45
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs deleted file mode 100644 index 17487708..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the max distance value of the AudioSource. Returns Success.")]
- public class SetMaxDistance : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The max distance value of the AudioSource")]
- public SharedFloat maxDistance;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.maxDistance = maxDistance.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- maxDistance = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta deleted file mode 100644 index 2d67b172..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMaxDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b0c75cf2afc289c4a8962f71b5e17dd1
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs deleted file mode 100644 index f693e4a8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the min distance value of the AudioSource. Returns Success.")]
- public class SetMinDistance : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The min distance value of the AudioSource")]
- public SharedFloat minDistance;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.minDistance = minDistance.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- minDistance = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta deleted file mode 100644 index 6e87631a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMinDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ccb3beba9296fc54d8427cd646af4f4e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs deleted file mode 100644 index 0d45e2df..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the mute value of the AudioSource. Returns Success.")]
- public class SetMute : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mute value of the AudioSource")]
- public SharedBool mute;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.mute = mute.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- mute = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta deleted file mode 100644 index 7296e828..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetMute.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ec553c7ad9360a24fb7ce3bf3bc48c97
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs deleted file mode 100644 index bd6d1853..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_4_6 || UNITY_4_7
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the pan value of the AudioSource. Returns Success.")]
- public class SetPan : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The pan value of the AudioSource")]
- public SharedFloat pan;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.pan = pan.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- pan = 1;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta deleted file mode 100644 index 5ee56ec2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPan.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ed66670f171cea24c9208fff10bfc43d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs deleted file mode 100644 index b1f24307..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_4_6 || UNITY_4_7
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the pan level value of the AudioSource. Returns Success.")]
- public class SetPanLevel : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The pan level value of the AudioSource")]
- public SharedFloat panLevel;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.panLevel = panLevel.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- panLevel = 1;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta deleted file mode 100644 index ca4e90f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPanLevel.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 219609a4a0818d746a7828dc968c31a9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs deleted file mode 100644 index 9a6de27f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the pitch value of the AudioSource. Returns Success.")]
- public class SetPitch : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The pitch value of the AudioSource")]
- public SharedFloat pitch;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.pitch = pitch.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- pitch = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta deleted file mode 100644 index 71a8ff21..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPitch.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3c7615ddc4e92fd41b72de06f039f9e1
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs deleted file mode 100644 index 1a1532ea..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the priority value of the AudioSource. Returns Success.")]
- public class SetPriority : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The priority value of the AudioSource")]
- public SharedInt priority;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.priority = priority.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- priority = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta deleted file mode 100644 index 0a8e4128..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetPriority.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4fc15622e17101f4b95be39910433c8a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs deleted file mode 100644 index 0b142108..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the rolloff mode of the AudioSource. Returns Success.")]
- public class SetRolloffMode : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rolloff mode of the AudioSource")]
- public AudioRolloffMode rolloffMode;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.rolloffMode = rolloffMode;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- rolloffMode = AudioRolloffMode.Logarithmic;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta deleted file mode 100644 index 0d7fe458..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetRolloffMode.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ef88d71b5b7e0a84d98bde6405eb294d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs deleted file mode 100644 index b214f713..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Changes the time at which a sound that has already been scheduled to play will end. Notice that depending on the " +
- "timing not all rescheduling requests can be fulfilled. Returns Success.")]
- public class SetScheduledEndTime : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Time in seconds")]
- public SharedFloat time = 0;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.SetScheduledEndTime(time.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- time = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta deleted file mode 100644 index 3f0af6c4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledEndTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8867d64aa9a2add4f913b8b5faa9d1ce
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs deleted file mode 100644 index 4c5b890c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Changes the time at which a sound that has already been scheduled to play will start. Returns Success.")]
- public class SetScheduledStartTime : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Time in seconds")]
- public SharedFloat time = 0;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.SetScheduledStartTime(time.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- time = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta deleted file mode 100644 index 4dbd7c6a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetScheduledStartTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: cf64b74120564064a8d9c622ccc7115a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs deleted file mode 100644 index f4657fcd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the spread value of the AudioSource. Returns Success.")]
- public class SetSpread : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The spread value of the AudioSource")]
- public SharedFloat spread;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.spread = spread.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- spread = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta deleted file mode 100644 index 89329407..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetSpread.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f6d964d5fdf24bf449d3f59de1864dd8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs deleted file mode 100644 index 637789e8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the time value of the AudioSource. Returns Success.")]
- public class SetTime : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The time value of the AudioSource")]
- public SharedFloat time;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.time = time.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- time = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta deleted file mode 100644 index bc128b7a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3173ce3fda9d60f48b159759f8981f89
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs deleted file mode 100644 index 53dddaa0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the rolloff mode of the AudioSource. Returns Success.")]
- public class SetVelocityUpdateMode : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity update mode of the AudioSource")]
- public AudioVelocityUpdateMode velocityUpdateMode;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.velocityUpdateMode = velocityUpdateMode;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- velocityUpdateMode = AudioVelocityUpdateMode.Auto;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta deleted file mode 100644 index 606e6903..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVelocityUpdateMode.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c26ea6b22d3fa7843a73e5088376996c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs deleted file mode 100644 index 80ee7189..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Sets the volume value of the AudioSource. Returns Success.")]
- public class SetVolume : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The volume value of the AudioSource")]
- public SharedFloat volume;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.volume = volume.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- volume = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta deleted file mode 100644 index 16176d79..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/SetVolume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: edfc39045c7af164fb340d21762e4d79
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs deleted file mode 100644 index f351635c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityAudioSource
-{
- [TaskCategory("Basic/AudioSource")]
- [TaskDescription("Stops playing the audio clip. Returns Success.")]
- public class Stop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private AudioSource audioSource;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- audioSource = currentGameObject.GetComponent<AudioSource>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (audioSource == null) {
- Debug.LogWarning("AudioSource is null");
- return TaskStatus.Failure;
- }
-
- audioSource.Stop();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta deleted file mode 100644 index 66ee21a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/AudioSource/Stop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: bd4cec1e9e81e664d8e7782bd02bcade
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour.meta deleted file mode 100644 index 1a17548b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 51de5dc2234f2d642b8b53dd9ccc9be3
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs deleted file mode 100644 index c34c4133..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBehaviour
-{
- [TaskCategory("Basic/Behaviour")]
- [TaskDescription("Stores the enabled state of the object. Returns Success.")]
- public class GetIsEnabled : Action
- {
- [Tooltip("The Object to use")]
- public SharedObject specifiedObject;
- [Tooltip("The enabled/disabled state")]
- [RequiredField]
- public SharedBool storeValue;
-
- public override TaskStatus OnUpdate()
- {
- if (specifiedObject == null && !(specifiedObject.Value is UnityEngine.Behaviour)) {
- Debug.LogWarning("SpecifiedObject is null or not a subclass of UnityEngine.Behaviour");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = (specifiedObject.Value as Behaviour).enabled;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- if (specifiedObject != null) {
- specifiedObject.Value = null;
- }
- storeValue = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs.meta deleted file mode 100644 index 55e67554..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/GetIsEnabled.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ad6519dede06d7b46b95e54bb60be281
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs deleted file mode 100644 index 78fb031f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBehaviour
-{
- [TaskCategory("Basic/Behaviour")]
- [TaskDescription("Returns Success if the object is enabled, otherwise Failure.")]
- public class IsEnabled : Conditional
- {
- [Tooltip("The Object to use")]
- public SharedObject specifiedObject;
-
- public override TaskStatus OnUpdate()
- {
- if (specifiedObject == null && !(specifiedObject.Value is UnityEngine.Behaviour)) {
- Debug.LogWarning("SpecifiedObject is null or not a subclass of UnityEngine.Behaviour");
- return TaskStatus.Failure;
- }
-
- return (specifiedObject.Value as Behaviour).enabled ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- if (specifiedObject != null) {
- specifiedObject.Value = null;
- }
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs.meta deleted file mode 100644 index f66d6058..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/IsEnabled.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 32f61cbdb8bdf1e44bf418ca21681bc3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs deleted file mode 100644 index 535355fd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs +++ /dev/null @@ -1,34 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBehaviour
-{
- [TaskCategory("Basic/Behaviour")]
- [TaskDescription("Enables/Disables the object. Returns Success.")]
- public class SetIsEnabled : Action
- {
- [Tooltip("The Object to use")]
- public SharedObject specifiedObject;
- [Tooltip("The enabled/disabled state")]
- public SharedBool enabled;
-
- public override TaskStatus OnUpdate()
- {
- if (specifiedObject == null && !(specifiedObject.Value is UnityEngine.Behaviour)) {
- Debug.LogWarning("SpecifiedObject is null or not a subclass of UnityEngine.Behaviour");
- return TaskStatus.Failure;
- }
-
- (specifiedObject.Value as Behaviour).enabled = enabled.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- if (specifiedObject != null) {
- specifiedObject.Value = null;
- }
- enabled = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs.meta deleted file mode 100644 index 623d440c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Behaviour/SetIsEnabled.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: cf7703ff7e9055e4f811a5b95bf18930
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider.meta deleted file mode 100644 index 46645ecf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 876af1fbcf3642e4b987507ed975a15a
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs deleted file mode 100644 index 83bf9367..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider
-{
- [TaskCategory("Basic/BoxCollider")]
- [TaskDescription("Stores the center of the BoxCollider. Returns Success.")]
- public class GetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the BoxCollider")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private BoxCollider boxCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- boxCollider = currentGameObject.GetComponent<BoxCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (boxCollider == null) {
- Debug.LogWarning("BoxCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = boxCollider.center;
-
- 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/BoxCollider/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta deleted file mode 100644 index 61b2c34f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9c3ae13d2bd0e5f4186835c672d9461f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs deleted file mode 100644 index d358a83b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider
-{
- [TaskCategory("Basic/BoxCollider")]
- [TaskDescription("Stores the size of the BoxCollider. Returns Success.")]
- public class GetSize : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The size of the BoxCollider")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private BoxCollider boxCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- boxCollider = currentGameObject.GetComponent<BoxCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (boxCollider == null) {
- Debug.LogWarning("BoxCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = boxCollider.size;
-
- 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/BoxCollider/GetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta deleted file mode 100644 index 934ee86c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0afec21454700d3479c4f9767f9382f9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs deleted file mode 100644 index e24eec2a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider
-{
- [TaskCategory("Basic/BoxCollider")]
- [TaskDescription("Sets the center of the BoxCollider. Returns Success.")]
- public class SetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the BoxCollider")]
- public SharedVector3 center;
-
- private BoxCollider boxCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- boxCollider = currentGameObject.GetComponent<BoxCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (boxCollider == null) {
- Debug.LogWarning("BoxCollider is null");
- return TaskStatus.Failure;
- }
-
- boxCollider.center = center.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- center = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta deleted file mode 100644 index 9787d48f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 45b3b4dc79247bd46a9c2b11fa9b125c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs deleted file mode 100644 index 1ee03fa2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider
-{
- [TaskCategory("Basic/BoxCollider")]
- [TaskDescription("Sets the size of the BoxCollider. Returns Success.")]
- public class SetSize : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The size of the BoxCollider")]
- public SharedVector3 size;
-
- private BoxCollider boxCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- boxCollider = currentGameObject.GetComponent<BoxCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (boxCollider == null) {
- Debug.LogWarning("BoxCollider is null");
- return TaskStatus.Failure;
- }
-
- boxCollider.size = size.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- size = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta deleted file mode 100644 index e00c7d4a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d899b6ed83f6e264f8e5867cf68c0cda
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D.meta deleted file mode 100644 index 0ad45570..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: c7814e7f18119144182f77f9b2a01af2
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs deleted file mode 100644 index e539eb30..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider2D
-{
- [TaskCategory("Basic/BoxCollider2D")]
- [TaskDescription("Stores the size of the BoxCollider2D. Returns Success.")]
- public class GetSize : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The size of the BoxCollider2D")]
- [RequiredField]
- public SharedVector2 storeValue;
-
- private BoxCollider2D boxCollider2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- boxCollider2D = currentGameObject.GetComponent<BoxCollider2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (boxCollider2D == null) {
- Debug.LogWarning("BoxCollider2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = boxCollider2D.size;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector2.zero;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs.meta deleted file mode 100644 index 362df45f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/GetSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c69113b787759f340aacbb9d99a6d654
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs deleted file mode 100644 index 5de4a500..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityBoxCollider2D
-{
- [TaskCategory("Basic/BoxCollider2D")]
- [TaskDescription("Sets the size of the BoxCollider2D. Returns Success.")]
- public class SetSize : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The size of the BoxCollider2D")]
- public SharedVector2 size;
-
- private BoxCollider2D boxCollider2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- boxCollider2D = currentGameObject.GetComponent<BoxCollider2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (boxCollider2D == null) {
- Debug.LogWarning("BoxCollider2D is null");
- return TaskStatus.Failure;
- }
-
- boxCollider2D.size = size.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- size = Vector2.zero;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs.meta deleted file mode 100644 index f5af4e82..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider2D/SetSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1875fd00045d98848b028015a17aeeaf
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider.meta deleted file mode 100644 index 0b7a7297..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 0cf43865b0892fb48ac285f63910ff97
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs deleted file mode 100644 index 05e4c8e4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Stores the center of the CapsuleCollider. Returns Success.")]
- public class GetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the CapsuleCollider")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = capsuleCollider.center;
-
- 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/CapsuleCollider/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs.meta deleted file mode 100644 index 3256d554..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3a032cb4c0b97b844ad53ad7bb2617c3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs deleted file mode 100644 index 56f394b9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Stores the direction of the CapsuleCollider. Returns Success.")]
- public class GetDirection : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The direction of the CapsuleCollider")]
- [RequiredField]
- public SharedInt storeValue;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = capsuleCollider.direction;
-
- 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/CapsuleCollider/GetDirection.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs.meta deleted file mode 100644 index 3e32e995..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetDirection.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7e9f2ebb599281345a458fab17aab5fd
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs deleted file mode 100644 index 98c38d5e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Gets the height of the CapsuleCollider. Returns Success.")]
- public class GetHeight : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The height of the CapsuleCollider")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = capsuleCollider.height;
-
- 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/CapsuleCollider/GetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs.meta deleted file mode 100644 index 8f56770b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetHeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 29e860749600e174aa61dd42be0a3126
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs deleted file mode 100644 index b1df3bc9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Stores the radius of the CapsuleCollider. Returns Success.")]
- public class GetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the CapsuleCollider")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = capsuleCollider.radius;
-
- 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/CapsuleCollider/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs.meta deleted file mode 100644 index 006177a6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/GetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d03b50a6f076c75408ef6e843bd75539
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs deleted file mode 100644 index c72abb9b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Sets the center of the CapsuleCollider. Returns Success.")]
- public class SetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the CapsuleCollider")]
- public SharedVector3 center;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- capsuleCollider.center = center.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- center = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs.meta deleted file mode 100644 index 8b888bdd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f8292285661aa7e4086c0b59926632c3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs deleted file mode 100644 index e07ee642..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Sets the direction of the CapsuleCollider. Returns Success.")]
- public class SetDirection : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The direction of the CapsuleCollider")]
- public SharedInt direction;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- capsuleCollider.direction = direction.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- direction = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs.meta deleted file mode 100644 index 15fea291..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetDirection.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4146b45b3a598294f86dbbac03e6e8cb
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs deleted file mode 100644 index 2f734d5d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Sets the height of the CapsuleCollider. Returns Success.")]
- public class SetHeight : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The height of the CapsuleCollider")]
- public SharedFloat direction;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- capsuleCollider.height = direction.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- direction = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs.meta deleted file mode 100644 index 60d24f8f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetHeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 34f947c079c1159488c80854ee53ecd8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs deleted file mode 100644 index 963dfe47..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCapsuleCollider
-{
- [TaskCategory("Basic/CapsuleCollider")]
- [TaskDescription("Sets the radius of the CapsuleCollider. Returns Success.")]
- public class SetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the CapsuleCollider")]
- public SharedFloat radius;
-
- private CapsuleCollider capsuleCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- capsuleCollider = currentGameObject.GetComponent<CapsuleCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (capsuleCollider == null) {
- Debug.LogWarning("CapsuleCollider is null");
- return TaskStatus.Failure;
- }
-
- capsuleCollider.radius = radius.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- radius = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs.meta deleted file mode 100644 index ae2e46ca..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider/SetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fed5a0f5604af324cb2e4a3ed9315793
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController.meta deleted file mode 100644 index 6034f256..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 4b58bcba0c40cfc448a1f2a5f2a57c57
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs deleted file mode 100644 index a05eb82a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Stores the center of the CharacterController. Returns Success.")]
- public class GetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the CharacterController")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = characterController.center;
-
- 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/CharacterController/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs.meta deleted file mode 100644 index d0c9a496..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e4033e3d9c7ef994ba600b3afec28a0d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs deleted file mode 100644 index 1317129e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Stores the height of the CharacterController. Returns Success.")]
- public class GetHeight : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The height of the CharacterController")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
- storeValue.Value = characterController.height;
-
- 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/CharacterController/GetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs.meta deleted file mode 100644 index d1dd43b3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetHeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: eec31e6d5685c674fa2952757b4adf9a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs deleted file mode 100644 index 67c3d1ff..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Stores the radius of the CharacterController. Returns Success.")]
- public class GetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the CharacterController")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = characterController.radius;
-
- 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/CharacterController/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs.meta deleted file mode 100644 index 81e97192..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3bf330244cdea3b43ad95e8731fdb78b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs deleted file mode 100644 index cb33ff2a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Stores the slope limit of the CharacterController. Returns Success.")]
- public class GetSlopeLimit : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The slope limit of the CharacterController")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = characterController.slopeLimit;
-
- 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/CharacterController/GetSlopeLimit.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs.meta deleted file mode 100644 index c6bf9789..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetSlopeLimit.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3cb445c34dce1a14aa5134278025ec59
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs deleted file mode 100644 index f4d14456..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Stores the step offset of the CharacterController. Returns Success.")]
- public class GetStepOffset : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The step offset of the CharacterController")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = characterController.stepOffset;
-
- 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/CharacterController/GetStepOffset.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs.meta deleted file mode 100644 index 17385174..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetStepOffset.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d9bb8d4be247f4d4cb9b2b05a6efd48f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs deleted file mode 100644 index 2c4ee10a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Stores the velocity of the CharacterController. Returns Success.")]
- public class GetVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the CharacterController")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = characterController.velocity;
-
- 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/CharacterController/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs.meta deleted file mode 100644 index 23ec32d3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/GetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 783c920567425bd4c9385eeaf8099ea4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs deleted file mode 100644 index a1688d5f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Returns Success if the collider hit another object, otherwise Failure.")]
- public class HasColliderHit : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The tag of the GameObject to check for a collision against")]
- public SharedString tag = "";
- [Tooltip("The object that started the collision")]
- public SharedGameObject collidedGameObject;
-
- private bool enteredCollision = false;
-
- public override TaskStatus OnUpdate()
- {
- return enteredCollision ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnEnd()
- {
- enteredCollision = false;
- }
-
- public override void OnControllerColliderHit(ControllerColliderHit hit)
- {
- if (string.IsNullOrEmpty(tag.Value) || tag.Value.Equals(hit.gameObject.tag)) {
- collidedGameObject.Value = hit.gameObject;
- enteredCollision = true;
- }
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- tag = "";
- collidedGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs.meta deleted file mode 100644 index 947de51c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/HasColliderHit.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9ff7c43d9df5279489455a4ce2eb3b20
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs deleted file mode 100644 index 4d480765..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Returns Success if the character is grounded, otherwise Failure.")]
- public class IsGrounded : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- return characterController.isGrounded ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs.meta deleted file mode 100644 index 536c1fa8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/IsGrounded.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e8541a996b0a37b4f8bce82dd23ddb84
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs deleted file mode 100644 index de40f1d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("A more complex move function taking absolute movement deltas. Returns Success.")]
- public class Move : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount to move")]
- public SharedVector3 motion;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- characterController.Move(motion.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- motion = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs.meta deleted file mode 100644 index 00e7570e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/Move.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 546770f14f8265d4c83b94210630b644
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs deleted file mode 100644 index c3aaac90..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Sets the center of the CharacterController. Returns Success.")]
- public class SetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the CharacterController")]
- public SharedVector3 center;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- characterController.center = center.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- center = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs.meta deleted file mode 100644 index 90d1e1c9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1072c5d1f7d15b24d811ee2e52f5806f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs deleted file mode 100644 index 7ad8e61c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Sets the height of the CharacterController. Returns Success.")]
- public class SetHeight : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The height of the CharacterController")]
- public SharedFloat height;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- characterController.height = height.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- height = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs.meta deleted file mode 100644 index d42f0e0b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetHeight.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f3646fc892390f443ab43e4313cd0c6a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs deleted file mode 100644 index 53327f7d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Sets the radius of the CharacterController. Returns Success.")]
- public class SetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the CharacterController")]
- public SharedFloat radius;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- characterController.radius = radius.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- radius = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs.meta deleted file mode 100644 index 8db23e47..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d3d7c584aef3bd5468165685a1975862
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs deleted file mode 100644 index ac860c57..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Sets the slope limit of the CharacterController. Returns Success.")]
- public class SetSlopeLimit : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The slope limit of the CharacterController")]
- public SharedFloat slopeLimit;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- characterController.slopeLimit = slopeLimit.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- slopeLimit = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs.meta deleted file mode 100644 index aca63d5a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetSlopeLimit.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 65d4ccec4c868584a89d9037a6eec3e6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs deleted file mode 100644 index d646276d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Sets the step offset of the CharacterController. Returns Success.")]
- public class SetStepOffset : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The step offset of the CharacterController")]
- public SharedFloat stepOffset;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- characterController.stepOffset = stepOffset.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- stepOffset = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs.meta deleted file mode 100644 index 5512e7e7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SetStepOffset.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b062e83de9feb8a41a9e4989f2d65b97
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs deleted file mode 100644 index 7b999324..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCharacterController
-{
- [TaskCategory("Basic/CharacterController")]
- [TaskDescription("Moves the character with speed. Returns Success.")]
- public class SimpleMove : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The speed of the movement")]
- public SharedVector3 speed;
-
- private CharacterController characterController;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- characterController = currentGameObject.GetComponent<CharacterController>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (characterController == null) {
- Debug.LogWarning("CharacterController is null");
- return TaskStatus.Failure;
- }
-
- characterController.SimpleMove(speed.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- speed = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs.meta deleted file mode 100644 index f3a41a05..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CharacterController/SimpleMove.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c760a29b8a35c044d87b7a80a58f046c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D.meta deleted file mode 100644 index 88b51cd1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: e179f1af407aa8b469c6d96d7c0e2563
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs deleted file mode 100644 index 0dd214d3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_4_6 || UNITY_4_7
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D
-{
- [TaskCategory("Basic/CircleCollider2D")]
- [TaskDescription("Stores the center of the CircleCollider2D. Returns Success.")]
- public class GetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the CircleCollider2D")]
- [RequiredField]
- public SharedVector2 storeValue;
-
- private CircleCollider2D circleCollider2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- circleCollider2D = currentGameObject.GetComponent<CircleCollider2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (circleCollider2D == null) {
- Debug.LogWarning("CircleCollider2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = circleCollider2D.center;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector2.zero;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs.meta deleted file mode 100644 index 3224c185..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f0b09bbd9fd4fbc44ba06b19dbb4cdd7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs deleted file mode 100644 index a0940ef5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D
-{
- [TaskCategory("Basic/CircleCollider2D")]
- [TaskDescription("Stores the radius of the CircleCollider2D. Returns Success.")]
- public class GetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the CircleCollider2D")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private CircleCollider2D circleCollider2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- circleCollider2D = currentGameObject.GetComponent<CircleCollider2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (circleCollider2D == null) {
- Debug.LogWarning("CircleCollider2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = circleCollider2D.radius;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs.meta deleted file mode 100644 index 17b98088..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/GetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5301adcc69414e44681c1d4dc7ecde58
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs deleted file mode 100644 index 41d5101c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_4_6 || UNITY_4_7
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D
-{
- [TaskCategory("Basic/CircleCollider2D")]
- [TaskDescription("Sets the center of the CircleCollider2D. Returns Success.")]
- public class SetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the CircleCollider2D")]
- public SharedVector2 center;
-
- private CircleCollider2D circleCollider2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- circleCollider2D = currentGameObject.GetComponent<CircleCollider2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (circleCollider2D == null) {
- Debug.LogWarning("CircleCollider2D is null");
- return TaskStatus.Failure;
- }
-
- circleCollider2D.center = center.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- center = Vector2.zero;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs.meta deleted file mode 100644 index 9d3181d3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 476937be0338dbf4c80b2a74a5d3ed8c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs deleted file mode 100644 index 44b51f3c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityCircleCollider2D
-{
- [TaskCategory("Basic/CircleCollider2D")]
- [TaskDescription("Sets the radius of the CircleCollider2D. Returns Success.")]
- public class SetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the CircleCollider2D")]
- public SharedFloat radius;
-
- private CircleCollider2D circleCollider2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- circleCollider2D = currentGameObject.GetComponent<CircleCollider2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (circleCollider2D == null) {
- Debug.LogWarning("CircleCollider2D is null");
- return TaskStatus.Failure;
- }
-
- circleCollider2D.radius = radius.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- radius = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs.meta deleted file mode 100644 index 51ed0fe3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CircleCollider2D/SetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a9f837093c996864d95d92cae654a8ba
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug.meta deleted file mode 100644 index f991fb9b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: d1140cef910ebcb4fa9817c4ec7fe2df
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs deleted file mode 100644 index c4bc3464..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug
-{
- [TaskCategory("Basic/Debug")]
- [TaskDescription("Draws a debug line")]
- public class DrawLine : Action
- {
- [Tooltip("The start position")]
- public SharedVector3 start;
- [Tooltip("The end position")]
- public SharedVector3 end;
- [Tooltip("The color")]
- public SharedColor color = Color.white;
- [Tooltip("Duration the line will be visible for in seconds.\nDefault: 0 means 1 frame.")]
- public SharedFloat duration;
- [Tooltip("Whether the line should show through world geometry.")]
- public SharedBool depthTest = true;
-
- public override TaskStatus OnUpdate()
- {
- Debug.DrawLine(start.Value, end.Value, color.Value, duration.Value, depthTest.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- start = Vector3.zero;
- end = Vector3.zero;
- color = Color.white;
- duration = 0f;
- depthTest = true;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta deleted file mode 100644 index 224373d4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawLine.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 66a533f4f027ab44bb35e498d761ce50
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs deleted file mode 100644 index 81aa823f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug
-{
- [TaskCategory("Basic/Debug")]
- [TaskDescription("Draws a debug ray")]
- public class DrawRay : Action
- {
- [Tooltip("The position")]
- public SharedVector3 start;
- [Tooltip("The direction")]
- public SharedVector3 direction;
- [Tooltip("The color")]
- public SharedColor color = Color.white;
-
- public override TaskStatus OnUpdate()
- {
- Debug.DrawRay(start.Value, direction.Value, color.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- start = Vector3.zero;
- direction = Vector3.zero;
- color = Color.white;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta deleted file mode 100644 index 8490bb34..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/DrawRay.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 786ac0c09ce982e43b444670fdfe4c74
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs deleted file mode 100644 index 00f96bba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs +++ /dev/null @@ -1,76 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug
-{
- [TaskDescription("LogFormat is analgous to Debug.LogFormat().\n" +
- "It takes format string, substitutes arguments supplied a '{0-4}' and returns success.\n" +
- "Any fields or arguments not supplied are ignored." +
- "It can be used for debugging.")]
- [TaskIcon("{SkinColor}LogIcon.png")]
- public class LogFormat : Action
- {
- [Tooltip("Text format with {0}, {1}, etc")]
- public SharedString textFormat;
-
- [Tooltip("Is this text an error?")]
- public SharedBool logError;
-
- public SharedVariable arg0;
- public SharedVariable arg1;
- public SharedVariable arg2;
- public SharedVariable arg3;
-
- public override TaskStatus OnUpdate()
- {
- var paramsArray = buildParamsArray();
- // Log the text and return success
- if (logError.Value) {
- Debug.LogErrorFormat(textFormat.Value, paramsArray);
- } else {
- Debug.LogFormat(textFormat.Value, paramsArray);
- }
- return TaskStatus.Success;
- }
-
- private object[] buildParamsArray() {
- object[] paramsArray;
- if (isValid(arg3)) {
- paramsArray = new object[4];
- paramsArray[3] = arg3.GetValue();
- paramsArray[2] = arg2.GetValue();
- paramsArray[1] = arg1.GetValue();
- paramsArray[0] = arg0.GetValue();
- } else if (isValid(arg2)) {
- paramsArray = new object[3];
- paramsArray[2] = arg2.GetValue();
- paramsArray[1] = arg1.GetValue();
- paramsArray[0] = arg0.GetValue();
- } else if (isValid(arg1)) {
- paramsArray = new object[2];
- paramsArray[1] = arg1.GetValue();
- paramsArray[0] = arg0.GetValue();
- } else if (isValid(arg0)) {
- paramsArray = new object[1];
- paramsArray[0] = arg0.GetValue();
- } else {
- return null;
- }
- return paramsArray;
- }
-
- private bool isValid(SharedVariable sv) {
- return null != sv && !sv.IsNone;
- }
-
- public override void OnReset()
- {
- // Reset the properties back to their original values
- textFormat = string.Empty;
- logError = false;
- arg0 = null;
- arg1 = null;
- arg2 = null;
- arg3 = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs.meta deleted file mode 100644 index 65c27cda..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogFormat.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 70765819b419e8a45b326e92edf17ef5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs deleted file mode 100644 index 73605da8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityDebug
-{
- [TaskCategory("Basic/Debug")]
- [TaskDescription("Log a variable value.")]
- public class LogValue : Action
- {
- [Tooltip("The variable to output")]
- public SharedGenericVariable variable;
-
- public override TaskStatus OnUpdate()
- {
- Debug.Log(variable.Value.value.GetValue());
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- variable = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta deleted file mode 100644 index 03ab4247..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Debug/LogValue.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c50983a88995f4f4197f7b39ca796667
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject.meta deleted file mode 100644 index 83094ffa..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: c03de85966f0a834383cef512841e4a9
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs deleted file mode 100644 index e1beca39..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Returns Success if the GameObject is active in the hierarchy, otherwise Failure.")]
- public class ActiveInHierarchy : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- public override TaskStatus OnUpdate()
- {
- return GetDefaultGameObject(targetGameObject.Value).activeInHierarchy ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta deleted file mode 100644 index 10414adf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0bbe57db7a21ee94f86aef75bbcd6d18
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs deleted file mode 100644 index 37945765..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Returns Success if the GameObject is active in the hierarchy, otherwise Failure.")]
- public class ActiveSelf : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- public override TaskStatus OnUpdate()
- {
- return GetDefaultGameObject(targetGameObject.Value).activeSelf ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta deleted file mode 100644 index a367c1b1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 26a4530d0ecaa774aaf060511089ddc3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs deleted file mode 100644 index 86e676af..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Returns Success if tags match, otherwise Failure.")]
- public class CompareTag : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The tag to compare against")]
- public SharedString tag;
-
- public override TaskStatus OnUpdate()
- {
- return GetDefaultGameObject(targetGameObject.Value).CompareTag(tag.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- tag = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta deleted file mode 100644 index 471d827f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fa50c2eedc866794890ff361bdd1d593
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs deleted file mode 100644 index 659157b5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Destorys the specified GameObject. Returns Success.")]
- public class Destroy : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Time to destroy the GameObject in")]
- public float time;
-
- public override TaskStatus OnUpdate()
- {
- var destroyGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (time == 0) {
- GameObject.Destroy(destroyGameObject);
- } else {
- GameObject.Destroy(destroyGameObject, time);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- time = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta deleted file mode 100644 index 0426b237..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 42a90ad4cba90604b8be494aa74df349
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs deleted file mode 100644 index 22338483..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Destorys the specified GameObject immediately. Returns Success.")]
- public class DestroyImmediate : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- public override TaskStatus OnUpdate()
- {
- var destroyGameObject = GetDefaultGameObject(targetGameObject.Value);
- GameObject.DestroyImmediate(destroyGameObject);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta deleted file mode 100644 index dfca4dbd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 81f8712bcbdbdbf4aad17ba5e1e20d8c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs deleted file mode 100644 index 067adeed..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Finds a GameObject by name. Returns Success.")]
- public class Find : Action
- {
- [Tooltip("The GameObject name to find")]
- public SharedString gameObjectName;
- [Tooltip("The object found by name")]
- [RequiredField]
- public SharedGameObject storeValue;
-
- public override TaskStatus OnUpdate()
- {
- storeValue.Value = GameObject.Find(gameObjectName.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- gameObjectName = null;
- storeValue = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta deleted file mode 100644 index 729c7c7d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5388c9a6fc7770f44885176c24f68aaa
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs deleted file mode 100644 index db02e1bd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Finds a GameObject by tag. Returns Success.")]
- public class FindGameObjectsWithTag : Action
- {
- [Tooltip("The tag of the GameObject to find")]
- public SharedString tag;
- [Tooltip("The objects found by name")]
- [RequiredField]
- public SharedGameObjectList storeValue;
-
- public override TaskStatus OnUpdate()
- {
- var gameObjects = GameObject.FindGameObjectsWithTag(tag.Value);
- for (int i = 0; i < gameObjects.Length; ++i) {
- storeValue.Value.Add(gameObjects[i]);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- tag.Value = null;
- storeValue.Value = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta deleted file mode 100644 index 51a2649d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ccc3e1d2bf7cfc74089c17d593472f98
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs deleted file mode 100644 index 35a0ef63..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Finds a GameObject by tag. Returns Success.")]
- public class FindWithTag : Action
- {
- [Tooltip("The tag of the GameObject to find")]
- public SharedString tag;
- [Tooltip("The object found by name")]
- [RequiredField]
- public SharedGameObject storeValue;
-
- public override TaskStatus OnUpdate()
- {
- storeValue.Value = GameObject.FindWithTag(tag.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- tag.Value = null;
- storeValue.Value = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta deleted file mode 100644 index c12ea132..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d8768bdf841982f4aae662ee5dac3f2d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs deleted file mode 100644 index 96069ed8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Returns the component of Type type if the game object has one attached, null if it doesn't. Returns Success.")]
- public class GetComponent : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The type of component")]
- public SharedString type;
- [Tooltip("The component")]
- [RequiredField]
- public SharedObject storeValue;
-
- public override TaskStatus OnUpdate()
- {
- storeValue.Value = GetDefaultGameObject(targetGameObject.Value).GetComponent(type.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- type.Value = "";
- storeValue.Value = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta deleted file mode 100644 index 6d3bbf91..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 46e3dd9b1b260584b893abde5f733359
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs deleted file mode 100644 index 6392cb5c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Stores the GameObject tag. Returns Success.")]
- public class GetTag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Active state of the GameObject")]
- [RequiredField]
- public SharedString storeValue;
-
- public override TaskStatus OnUpdate()
- {
- storeValue.Value = GetDefaultGameObject(targetGameObject.Value).tag;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta deleted file mode 100644 index 03efe771..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 44bf3273a8802dc408352f165f18c541
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs deleted file mode 100644 index 61f53469..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Instantiates a new GameObject. Returns Success.")]
- public class Instantiate : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the new GameObject")]
- public SharedVector3 position;
- [Tooltip("The rotation of the new GameObject")]
- public SharedQuaternion rotation = Quaternion.identity;
- [SharedRequired]
- [Tooltip("The instantiated GameObject")]
- public SharedGameObject storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = GameObject.Instantiate(targetGameObject.Value, position.Value, rotation.Value) as GameObject;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- position = Vector3.zero;
- rotation = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta deleted file mode 100644 index fc324f10..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 804a64515d87a0546ad7c6c4408ed53f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs deleted file mode 100644 index 87819e46..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Sends a message to the target GameObject. Returns Success.")]
- public class SendMessage : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The message to send")]
- public SharedString message;
- [Tooltip("The value to send")]
- public SharedGenericVariable value;
-
- public override TaskStatus OnUpdate()
- {
- if (value.Value != null) {
- GetDefaultGameObject(targetGameObject.Value).SendMessage(message.Value, value.Value.value.GetValue());
- } else {
- GetDefaultGameObject(targetGameObject.Value).SendMessage(message.Value);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- message = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta deleted file mode 100644 index 7eee6459..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: dd0f144b1db34024eaea548f6539d2ae
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs deleted file mode 100644 index c3cbd84f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Activates/Deactivates the GameObject. Returns Success.")]
- public class SetActive : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Active state of the GameObject")]
- public SharedBool active;
-
- public override TaskStatus OnUpdate()
- {
- GetDefaultGameObject(targetGameObject.Value).SetActive(active.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- active = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta deleted file mode 100644 index 58907327..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5237a810dcce11e499c1915171ec670b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs deleted file mode 100644 index d12ab6e4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityGameObject
-{
- [TaskCategory("Basic/GameObject")]
- [TaskDescription("Sets the GameObject tag. Returns Success.")]
- public class SetTag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The GameObject tag")]
- public SharedString tag;
-
- public override TaskStatus OnUpdate()
- {
- GetDefaultGameObject(targetGameObject.Value).tag = tag.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- tag = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta deleted file mode 100644 index 6293b8dc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e275477e6962d9b4fb90d7930bb6ff5a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input.meta deleted file mode 100644 index 0ec84f15..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 77642b8113f3f334d971d61be9516264
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs deleted file mode 100644 index 81c8be5c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the acceleration value.")]
- public class GetAcceleration : Action
- {
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Input.acceleration;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs.meta deleted file mode 100644 index 46720f9c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAcceleration.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 06e82895d2abea24599ddfd6f0d7386a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs deleted file mode 100644 index 00249ff4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the value of the specified axis and stores it in a float.")]
- public class GetAxis : Action
- {
- [Tooltip("The name of the axis")]
- public SharedString axisName;
- [Tooltip("Axis values are in the range -1 to 1. Use the multiplier to set a larger range")]
- public SharedFloat multiplier;
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- var axisValue = Input.GetAxis(axisName.Value);
-
- // if variable set to none, assume multiplier of 1
- if (!multiplier.IsNone) {
- axisValue *= multiplier.Value;
- }
-
- storeResult.Value = axisValue;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- axisName = "";
- multiplier = 1.0f;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs.meta deleted file mode 100644 index b15eb427..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 84fa68d3aa9286f488ee60bb7f420079
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs deleted file mode 100644 index 3a28cd38..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the raw value of the specified axis and stores it in a float.")]
- public class GetAxisRaw : Action
- {
- [Tooltip("The name of the axis")]
- public SharedString axisName;
- [Tooltip("Axis values are in the range -1 to 1. Use the multiplier to set a larger range")]
- public SharedFloat multiplier;
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- var axisValue = Input.GetAxis(axisName.Value);
-
- // if variable set to none, assume multiplier of 1
- if (!multiplier.IsNone) {
- axisValue *= multiplier.Value;
- }
-
- storeResult.Value = axisValue;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- axisName = "";
- multiplier = 1.0f;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta deleted file mode 100644 index 9f0257dc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetAxisRaw.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d7ba1768defe9ae4489e2d849801caf2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs deleted file mode 100644 index aafcb287..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the state of the specified button.")]
- public class GetButton : Action
- {
- [Tooltip("The name of the button")]
- public SharedString buttonName;
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedBool storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Input.GetButton(buttonName.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- buttonName = "Fire1";
- storeResult = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs.meta deleted file mode 100644 index 3f0dcc36..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetButton.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7ca2e1ded24b0a144b628bb8ed81ccd0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs deleted file mode 100644 index 5fd8807a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the pressed state of the specified key.")]
- public class GetKey : Action
- {
- [Tooltip("The key to test.")]
- public KeyCode key;
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedBool storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Input.GetKey(key);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = KeyCode.None;
- storeResult = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs.meta deleted file mode 100644 index 250f6552..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetKey.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8d91595c5c003b948abb908c7465a7ec
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs deleted file mode 100644 index 2ffab1fd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the state of the specified mouse button.")]
- public class GetMouseButton : Action
- {
- [Tooltip("The index of the button")]
- public SharedInt buttonIndex;
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedBool storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Input.GetMouseButton(buttonIndex.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- buttonIndex = 0;
- storeResult = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs.meta deleted file mode 100644 index bef0000b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMouseButton.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3449e6301a95d9e49a8f6b50ef862faa
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs deleted file mode 100644 index c77718c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Stores the mouse position.")]
- public class GetMousePosition : Action
- {
- [RequiredField]
- [Tooltip("The stored result")]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Input.mousePosition;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs.meta deleted file mode 100644 index 6909b9e2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/GetMousePosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f11dbb85cfc5b3941ae4f82fa54b7d27
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs deleted file mode 100644 index 8a783800..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Returns success when the specified button is pressed.")]
- public class IsButtonDown : Conditional
- {
- [Tooltip("The name of the button")]
- public SharedString buttonName;
-
- public override TaskStatus OnUpdate()
- {
- return Input.GetButtonDown(buttonName.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- buttonName = "Fire1";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs.meta deleted file mode 100644 index 82b95089..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonDown.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 554c281a83ae5bb4bbcdf3bdeac6779e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs deleted file mode 100644 index 4912f768..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Returns success when the specified button is released.")]
- public class IsButtonUp : Conditional
- {
- [Tooltip("The name of the button")]
- public SharedString buttonName;
-
- public override TaskStatus OnUpdate()
- {
- return Input.GetButtonUp(buttonName.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- buttonName = "Fire1";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs.meta deleted file mode 100644 index 5326dcbc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsButtonUp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 71d9dda886873b943922eae52da81244
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs deleted file mode 100644 index f1fe4100..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Returns success when the specified key is pressed.")]
- public class IsKeyDown : Conditional
- {
- [Tooltip("The key to test")]
- public KeyCode key;
-
- public override TaskStatus OnUpdate()
- {
- return Input.GetKeyDown(key) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- key = KeyCode.None;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs.meta deleted file mode 100644 index bffece71..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyDown.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b4c02f1f071b9604389e1c1f1bfab3eb
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs deleted file mode 100644 index ddeb76f8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Returns success when the specified key is released.")]
- public class IsKeyUp : Conditional
- {
- [Tooltip("The key to test")]
- public KeyCode key;
-
- public override TaskStatus OnUpdate()
- {
- return Input.GetKeyUp(key) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- key = KeyCode.None;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs.meta deleted file mode 100644 index bbca872f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsKeyUp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7d8622d5540c851448ad036016f0f426
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs deleted file mode 100644 index 573d6266..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Returns success when the specified mouse button is pressed.")]
- public class IsMouseDown : Conditional
- {
- [Tooltip("The button index")]
- public SharedInt buttonIndex;
-
- public override TaskStatus OnUpdate()
- {
- return Input.GetMouseButtonDown(buttonIndex.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- buttonIndex = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs.meta deleted file mode 100644 index 63169ed0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseDown.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fd85264410cd9ac45b0c9c2e550f7c46
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs deleted file mode 100644 index 157474d1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
-{
- [TaskCategory("Basic/Input")]
- [TaskDescription("Returns success when the specified mouse button is pressed.")]
- public class IsMouseUp : Conditional
- {
- [Tooltip("The button index")]
- public SharedInt buttonIndex;
-
- public override TaskStatus OnUpdate()
- {
- return Input.GetMouseButtonUp(buttonIndex.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- buttonIndex = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs.meta deleted file mode 100644 index 8d3608bf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Input/IsMouseUp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b2ecc8718d19d9b46832c51de0390245
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask.meta deleted file mode 100644 index a0aceb57..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2
-guid: 03592e079804666408280a195c972a69
-folderAsset: yes
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs deleted file mode 100644 index 032e47be..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLayerMask
-{
- [TaskCategory("Basic/LayerMask")]
- [TaskDescription("Gets the layer of a GameObject.")]
- public class GetLayer : Action
- {
- [Tooltip("The GameObject to set the layer of")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the layer to get")]
- [RequiredField]
- public SharedString storeResult;
-
- public override TaskStatus OnUpdate()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- storeResult.Value = LayerMask.LayerToName(currentGameObject.layer);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta deleted file mode 100644 index 3b4d954c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/GetLayer.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4a7e0974f9cfb9945bb2d0f41ed55f10
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs deleted file mode 100644 index 09f218d6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLayerMask
-{
- [TaskCategory("Basic/LayerMask")]
- [TaskDescription("Sets the layer of a GameObject.")]
- public class SetLayer : Action
- {
- [Tooltip("The GameObject to set the layer of")]
- public SharedGameObject targetGameObject;
- [Tooltip("The name of the layer to set")]
- public SharedString layerName = "Default";
-
- public override TaskStatus OnUpdate()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- currentGameObject.layer = LayerMask.NameToLayer(layerName.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- layerName = "Default";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta deleted file mode 100644 index f57d1cd8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/LayerMask/SetLayer.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 483904cd6081c8440a146b11481d6623
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light.meta deleted file mode 100644 index 3985d7aa..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 48823f7ab681c2b4f9439c617555cf7a
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs deleted file mode 100644 index 29a084c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Stores the color of the light.")]
- public class GetColor : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [RequiredField]
- [Tooltip("The color to store")]
- public SharedColor storeValue;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- storeValue = light.color;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Color.white;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta deleted file mode 100644 index c391a19f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 935c3e08c991a524fa451ba010bb7077
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs deleted file mode 100644 index 85dfd53b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Stores the light's cookie size.")]
- public class GetCookieSize : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [RequiredField]
- [Tooltip("The size to store")]
- public SharedFloat storeValue;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- storeValue = light.cookieSize;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta deleted file mode 100644 index a86579e2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetCookieSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4c382d40893d45d46842714355d4cab4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs deleted file mode 100644 index 7ee3f1b3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Stores the intensity of the light.")]
- public class GetIntensity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [RequiredField]
- [Tooltip("The intensity to store")]
- public SharedFloat storeValue;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- storeValue = light.intensity;
- 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/Light/GetIntensity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs.meta deleted file mode 100644 index dfad40c2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetIntensity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8af031ee741aec645bcf65ae806e78a7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs deleted file mode 100644 index 3156c745..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Stores the range of the light.")]
- public class GetRange : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [RequiredField]
- [Tooltip("The range to store")]
- public SharedFloat storeValue;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- storeValue = light.range;
- 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/Light/GetRange.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs.meta deleted file mode 100644 index 220a3c67..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetRange.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5ebab1924e0212c4ca589526a033fda6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs deleted file mode 100644 index 796f4fe0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Stores the shadow bias of the light.")]
- public class GetShadowBias : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [RequiredField]
- [Tooltip("The shadow bias to store")]
- public SharedFloat storeValue;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- storeValue = light.shadowBias;
- 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/Light/GetShadowBias.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs.meta deleted file mode 100644 index 7b99160f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowBias.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9d0cbb27de892b44193aaa9f12842ed2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs deleted file mode 100644 index 81e3ca68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Stores the color of the light.")]
- public class GetShadowStrength : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [RequiredField]
- [Tooltip("The color to store")]
- public SharedFloat storeValue;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- storeValue = light.shadowStrength;
- 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/Light/GetShadowStrength.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs.meta deleted file mode 100644 index 76739e89..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetShadowStrength.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7a7fe83e412ff344888939e6a974a064
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs deleted file mode 100644 index d6b98562..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Stores the spot angle of the light.")]
- public class GetSpotAngle : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [RequiredField]
- [Tooltip("The spot angle to store")]
- public SharedFloat storeValue;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- storeValue = light.spotAngle;
- 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/Light/GetSpotAngle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta deleted file mode 100644 index 74436066..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/GetSpotAngle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4dfc8df823e06cd45a09d929a060f99d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs deleted file mode 100644 index 43232caf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the color of the light.")]
- public class SetColor : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The color to set")]
- public SharedColor color;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.color = color.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- color = Color.white;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta deleted file mode 100644 index 403db7c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0ba683b0b18385042b3351c660f29d33
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs deleted file mode 100644 index 5037c250..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the cookie of the light.")]
- public class SetCookie : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The cookie to set")]
- public Texture2D cookie;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.cookie = cookie;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- cookie = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta deleted file mode 100644 index ad8cc7b0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookie.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 374f9a87dc387a04585b87f187d019c5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs deleted file mode 100644 index b70581e3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the light's cookie size.")]
- public class SetCookieSize : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The size to set")]
- public SharedFloat cookieSize;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.cookieSize = cookieSize.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- cookieSize = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta deleted file mode 100644 index e06f1769..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCookieSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fbc2d3865f928144ea551b1d927ddc96
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs deleted file mode 100644 index 5f6ef3e2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the culling mask of the light.")]
- public class SetCullingMask : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The culling mask to set")]
- public LayerMask cullingMask;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.cullingMask = cullingMask.value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- cullingMask = -1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta deleted file mode 100644 index 8968b4e5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetCullingMask.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3f67673818b7e914ebf088b3752d716b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs deleted file mode 100644 index 9bbf21c8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the intensity of the light.")]
- public class SetIntensity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The intensity to set")]
- public SharedFloat intensity;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.intensity = intensity.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- intensity = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta deleted file mode 100644 index 137b45cd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetIntensity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1f32aa9b9681f0a4285bd60ac0607d00
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs deleted file mode 100644 index 975421ee..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the range of the light.")]
- public class SetRange : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The range to set")]
- public SharedFloat range;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.range = range.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- range = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta deleted file mode 100644 index d2bb5bd3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetRange.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f0b5d0c0a07806244a3c5b15e29cf90c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs deleted file mode 100644 index b286c041..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the shadow bias of the light.")]
- public class SetShadowBias : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The shadow bias to set")]
- public SharedFloat shadowBias;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.shadowBias = shadowBias.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- shadowBias = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta deleted file mode 100644 index c364894d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowBias.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f2b374e3c2e26e94ba76dd68290ff538
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs deleted file mode 100644 index 1f9122e8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_4_6 || UNITY_4_7
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the shadow softness of the light.")]
- public class SetShadowSoftness : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The shadow softness to set")]
- public SharedFloat shadowSoftness;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.shadowSoftness = shadowSoftness.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- shadowSoftness = 0;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta deleted file mode 100644 index 1276066d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftness.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ca82eb780880d17499dc6de132631073
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs deleted file mode 100644 index 2c5047f0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_4_6 || UNITY_4_7
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the shadow softness fade value of the light.")]
- public class SetShadowSoftnessFade : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The shadow softness fade to set")]
- public SharedFloat shadowSoftnessFade;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.shadowSoftnessFade = shadowSoftnessFade.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- shadowSoftnessFade = 0;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta deleted file mode 100644 index 074f1119..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowSoftnessFade.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5e7db120bd152164eb6d586a39e53175
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs deleted file mode 100644 index b30cf243..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the shadow strength of the light.")]
- public class SetShadowSoftnessStrength : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The shadow strength to set")]
- public SharedFloat shadowStrength;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.shadowStrength = shadowStrength.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- shadowStrength = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta deleted file mode 100644 index f5ba4379..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadowStrength.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 611e5846c0413be46bbc44fbd256b4e9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs deleted file mode 100644 index 8310dd27..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the shadow type of the light.")]
- public class SetShadows : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The shadow type to set")]
- public LightShadows shadows;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.shadows = shadows;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta deleted file mode 100644 index f528500b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetShadows.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b6226eb03ad729445bc7ccfb1f0cd89d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs deleted file mode 100644 index f017a652..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the spot angle of the light.")]
- public class SetSpotAngle : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The spot angle to set")]
- public SharedFloat spotAngle;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.spotAngle = spotAngle.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- spotAngle = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta deleted file mode 100644 index b6d09a90..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetSpotAngle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9a8b9b0654618fe48953e059d4aa5ee3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs deleted file mode 100644 index 2d103ed9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityLight
-{
- [TaskCategory("Basic/Light")]
- [TaskDescription("Sets the type of the light.")]
- public class SetType : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The type to set")]
- public LightType type;
-
- // cache the light component
- private Light light;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- light = currentGameObject.GetComponent<Light>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (light == null) {
- Debug.LogWarning("Light is null");
- return TaskStatus.Failure;
- }
-
- light.type = type;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta deleted file mode 100644 index c0ba834c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Light/SetType.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 85cae5f82bfcbfb41ac7c66464eef85f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math.meta deleted file mode 100644 index 60031b56..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: fffa44303fdbffe4289373d6e5087b4a
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs deleted file mode 100644 index 0098ff55..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Performs a comparison between two bools.")]
- public class BoolComparison : Conditional
- {
- [Tooltip("The first bool")]
- public SharedBool bool1;
- [Tooltip("The second bool")]
- public SharedBool bool2;
-
- public override TaskStatus OnUpdate()
- {
- return bool1.Value == bool2.Value ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- bool1.Value = false;
- bool2.Value = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs.meta deleted file mode 100644 index ec4e2beb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolComparison.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: abaa3d78e68f249428f3be7acae86b0d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs deleted file mode 100644 index 04fe32c9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs +++ /dev/null @@ -1,21 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Flips the value of the bool.")]
- public class BoolFlip : Action
- {
- [Tooltip("The bool to flip the value of")]
- public SharedBool boolVariable;
-
- public override TaskStatus OnUpdate()
- {
- boolVariable.Value = !boolVariable.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- boolVariable.Value = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs.meta deleted file mode 100644 index 44658dae..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolFlip.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 54aae1e47fe3be6458751bf1f9defe8f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs deleted file mode 100644 index 8f4eb768..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs +++ /dev/null @@ -1,51 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Performs a math operation on two bools: AND, OR, NAND, or XOR.")]
- public class BoolOperator : Action
- {
- public enum Operation
- {
- AND,
- OR,
- NAND,
- XOR
- }
-
- [Tooltip("The operation to perform")]
- public Operation operation;
- [Tooltip("The first bool")]
- public SharedBool bool1;
- [Tooltip("The second bool")]
- public SharedBool bool2;
- [Tooltip("The variable to store the result")]
- public SharedBool storeResult;
-
- public override TaskStatus OnUpdate()
- {
- switch (operation) {
- case Operation.AND:
- storeResult.Value = bool1.Value && bool2.Value;
- break;
- case Operation.OR:
- storeResult.Value = bool1.Value || bool2.Value;
- break;
- case Operation.NAND:
- storeResult.Value = !(bool1.Value && bool2.Value);
- break;
- case Operation.XOR:
- storeResult.Value = bool1.Value ^ bool2.Value;
- break;
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- operation = Operation.AND;
- bool1.Value = false;
- bool2.Value = false;
- storeResult.Value = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs.meta deleted file mode 100644 index 7b4a9b28..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/BoolOperator.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: bd7b9dfddd114be4a8c8a8521262970d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs deleted file mode 100644 index 16c2e345..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Stores the absolute value of the float.")]
- public class FloatAbs : Action
- {
- [Tooltip("The float to return the absolute value of")]
- public SharedFloat floatVariable;
-
- public override TaskStatus OnUpdate()
- {
- floatVariable.Value = Mathf.Abs(floatVariable.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- floatVariable = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs.meta deleted file mode 100644 index 805bd7e7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatAbs.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ab5531c4ed335b643a6f310c048a6b00
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs deleted file mode 100644 index 89f406b9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Clamps the float between two values.")]
- public class FloatClamp : Action
- {
- [Tooltip("The float to clamp")]
- public SharedFloat floatVariable;
- [Tooltip("The maximum value of the float")]
- public SharedFloat minValue;
- [Tooltip("The maximum value of the float")]
- public SharedFloat maxValue;
-
- public override TaskStatus OnUpdate()
- {
- floatVariable.Value = Mathf.Clamp(floatVariable.Value, minValue.Value, maxValue.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- floatVariable = minValue = maxValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs.meta deleted file mode 100644 index dbe8a35c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatClamp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 75c3634f2c8f1dd49b826a7ac0c7bdbe
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs deleted file mode 100644 index 1aa5c83e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs +++ /dev/null @@ -1,50 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Performs comparison between two floats: less than, less than or equal to, equal to, not equal to, greater than or equal to, or greater than.")]
- public class FloatComparison : Conditional
- {
- public enum Operation
- {
- LessThan,
- LessThanOrEqualTo,
- EqualTo,
- NotEqualTo,
- GreaterThanOrEqualTo,
- GreaterThan
- }
-
- [Tooltip("The operation to perform")]
- public Operation operation;
- [Tooltip("The first float")]
- public SharedFloat float1;
- [Tooltip("The second float")]
- public SharedFloat float2;
-
- public override TaskStatus OnUpdate()
- {
- switch (operation) {
- case Operation.LessThan:
- return float1.Value < float2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.LessThanOrEqualTo:
- return float1.Value <= float2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.EqualTo:
- return float1.Value == float2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.NotEqualTo:
- return float1.Value != float2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.GreaterThanOrEqualTo:
- return float1.Value >= float2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.GreaterThan:
- return float1.Value > float2.Value ? TaskStatus.Success : TaskStatus.Failure;
- }
- return TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- operation = Operation.LessThan;
- float1.Value = 0;
- float2.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs.meta deleted file mode 100644 index f4f6d874..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatComparison.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 79c81f4e67dbdc44880734e78153117c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs deleted file mode 100644 index c4cebd9d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs +++ /dev/null @@ -1,65 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Performs a math operation on two floats: Add, Subtract, Multiply, Divide, Min, or Max.")]
- public class FloatOperator : Action
- {
- public enum Operation
- {
- Add,
- Subtract,
- Multiply,
- Divide,
- Min,
- Max,
- Modulo
- }
-
- [Tooltip("The operation to perform")]
- public Operation operation;
- [Tooltip("The first float")]
- public SharedFloat float1;
- [Tooltip("The second float")]
- public SharedFloat float2;
- [Tooltip("The variable to store the result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- switch (operation) {
- case Operation.Add:
- storeResult.Value = float1.Value + float2.Value;
- break;
- case Operation.Subtract:
- storeResult.Value = float1.Value - float2.Value;
- break;
- case Operation.Multiply:
- storeResult.Value = float1.Value * float2.Value;
- break;
- case Operation.Divide:
- storeResult.Value = float1.Value / float2.Value;
- break;
- case Operation.Min:
- storeResult.Value = Mathf.Min(float1.Value, float2.Value);
- break;
- case Operation.Max:
- storeResult.Value = Mathf.Max(float1.Value, float2.Value);
- break;
- case Operation.Modulo:
- storeResult.Value = float1.Value % float2.Value;
- break;
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- operation = Operation.Add;
- float1.Value = 0;
- float2.Value = 0;
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs.meta deleted file mode 100644 index 1641d6ce..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/FloatOperator.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9144ac2a8b796c941aeb3d6a4bc2cf7c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs deleted file mode 100644 index 05f97250..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Stores the absolute value of the int.")]
- public class IntAbs : Action
- {
- [Tooltip("The int to return the absolute value of")]
- public SharedInt intVariable;
-
- public override TaskStatus OnUpdate()
- {
- intVariable.Value = Mathf.Abs(intVariable.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- intVariable = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs.meta deleted file mode 100644 index b3363f74..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntAbs.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8edcbab77068fe044842381cfe0acc19
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs deleted file mode 100644 index fed3a146..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Clamps the int between two values.")]
- public class IntClamp : Action
- {
- [Tooltip("The int to clamp")]
- public SharedInt intVariable;
- [Tooltip("The maximum value of the int")]
- public SharedInt minValue;
- [Tooltip("The maximum value of the int")]
- public SharedInt maxValue;
-
- public override TaskStatus OnUpdate()
- {
- intVariable.Value = Mathf.Clamp(intVariable.Value, minValue.Value, maxValue.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- intVariable = minValue = maxValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs.meta deleted file mode 100644 index c1bf1d66..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntClamp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 67cbe30015f2b4940a069cbbee22d888
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs deleted file mode 100644 index d0eda4f5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs +++ /dev/null @@ -1,50 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Performs comparison between two integers: less than, less than or equal to, equal to, not equal to, greater than or equal to, or greater than.")]
- public class IntComparison : Conditional
- {
- public enum Operation
- {
- LessThan,
- LessThanOrEqualTo,
- EqualTo,
- NotEqualTo,
- GreaterThanOrEqualTo,
- GreaterThan
- }
-
- [Tooltip("The operation to perform")]
- public Operation operation;
- [Tooltip("The first integer")]
- public SharedInt integer1;
- [Tooltip("The second integer")]
- public SharedInt integer2;
-
- public override TaskStatus OnUpdate()
- {
- switch (operation) {
- case Operation.LessThan:
- return integer1.Value < integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.LessThanOrEqualTo:
- return integer1.Value <= integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.EqualTo:
- return integer1.Value == integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.NotEqualTo:
- return integer1.Value != integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.GreaterThanOrEqualTo:
- return integer1.Value >= integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
- case Operation.GreaterThan:
- return integer1.Value > integer2.Value ? TaskStatus.Success : TaskStatus.Failure;
- }
- return TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- operation = Operation.LessThan;
- integer1.Value = 0;
- integer2.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs.meta deleted file mode 100644 index e8807d6b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntComparison.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 99108c35b6d8e9942b8cf441a63f97b5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs deleted file mode 100644 index 1ad1bc62..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs +++ /dev/null @@ -1,66 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Performs a math operation on two integers: Add, Subtract, Multiply, Divide, Min, or Max.")]
- public class IntOperator : Action
- {
- public enum Operation
- {
- Add,
- Subtract,
- Multiply,
- Divide,
- Min,
- Max,
- Modulo
- }
-
- [Tooltip("The operation to perform")]
- public Operation operation;
- [Tooltip("The first integer")]
- public SharedInt integer1;
- [Tooltip("The second integer")]
- public SharedInt integer2;
- [RequiredField]
- [Tooltip("The variable to store the result")]
- public SharedInt storeResult;
-
- public override TaskStatus OnUpdate()
- {
- switch (operation) {
- case Operation.Add:
- storeResult.Value = integer1.Value + integer2.Value;
- break;
- case Operation.Subtract:
- storeResult.Value = integer1.Value - integer2.Value;
- break;
- case Operation.Multiply:
- storeResult.Value = integer1.Value * integer2.Value;
- break;
- case Operation.Divide:
- storeResult.Value = integer1.Value / integer2.Value;
- break;
- case Operation.Min:
- storeResult.Value = Mathf.Min(integer1.Value, integer2.Value);
- break;
- case Operation.Max:
- storeResult.Value = Mathf.Max(integer1.Value, integer2.Value);
- break;
- case Operation.Modulo:
- storeResult.Value = integer1.Value % integer2.Value;
- break;
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- operation = Operation.Add;
- integer1.Value = 0;
- integer2.Value = 0;
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs.meta deleted file mode 100644 index fc1fa364..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IntOperator.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 84208004fb80c0945acc5685aa0a2681
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs deleted file mode 100644 index 9a106fde..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Is the float a positive value?")]
- public class IsFloatPositive : Conditional
- {
- [Tooltip("The float to check if positive")]
- public SharedFloat floatVariable;
-
- public override TaskStatus OnUpdate()
- {
- return floatVariable.Value > 0 ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- floatVariable = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs.meta deleted file mode 100644 index 6502aa63..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsFloatPositive.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: db01d0da1f282134ca0ff7332eb19208
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs deleted file mode 100644 index 66fd1e7d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Is the int a positive value?")]
- public class IsIntPositive : Conditional
- {
- [Tooltip("The int to check if positive")]
- public SharedInt intVariable;
-
- public override TaskStatus OnUpdate()
- {
- return intVariable.Value > 0 ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- intVariable = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs.meta deleted file mode 100644 index 0fd5bd95..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/IsIntPositive.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0caff63c23ae17343a455fcbe6eab40a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs deleted file mode 100644 index 1e39179c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Lerp the float by an amount.")]
- public class Lerp : Action
- {
- [Tooltip("The from value")]
- public SharedFloat fromValue;
- [Tooltip("The to value")]
- public SharedFloat toValue;
- [Tooltip("The amount to lerp")]
- public SharedFloat lerpAmount;
- [Tooltip("The lerp resut")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Mathf.Lerp(fromValue.Value, toValue.Value, lerpAmount.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromValue = toValue = lerpAmount = storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs.meta deleted file mode 100644 index b6e18c51..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/Lerp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 355f3f83182cc434cb3a1bfb66862e29
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs deleted file mode 100644 index 11cd8165..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Lerp the angle by an amount.")]
- public class LerpAngle : Action
- {
- [Tooltip("The from value")]
- public SharedFloat fromValue;
- [Tooltip("The to value")]
- public SharedFloat toValue;
- [Tooltip("The amount to lerp")]
- public SharedFloat lerpAmount;
- [Tooltip("The lerp resut")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Mathf.LerpAngle(fromValue.Value, toValue.Value, lerpAmount.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromValue = toValue = lerpAmount = storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs.meta deleted file mode 100644 index 6b5fc782..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/LerpAngle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c3b148edcb926b744a2bb789f7967e24
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs deleted file mode 100644 index 2cb731d3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Sets a random bool value")]
- public class RandomBool : Action
- {
- [Tooltip("The variable to store the result")]
- public SharedBool storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Random.value < 0.5f;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult.Value = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs.meta deleted file mode 100644 index e666e5ed..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomBool.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 76d2565ca99ca26459dbefb44dcac109
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs deleted file mode 100644 index 57ca24f8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Sets a random float value")]
- public class RandomFloat : Action
- {
- [Tooltip("The minimum amount")]
- public SharedFloat min;
- [Tooltip("The maximum amount")]
- public SharedFloat max;
- [Tooltip("Is the maximum value inclusive?")]
- public bool inclusive;
- [Tooltip("The variable to store the result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- if (inclusive) {
- storeResult.Value = Random.Range(min.Value, max.Value + 1);
- } else {
- storeResult.Value = Random.Range(min.Value, max.Value);
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- min.Value = 0;
- max.Value = 0;
- inclusive = false;
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs.meta deleted file mode 100644 index 9b1e5fc8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomFloat.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9f81e111c77731b418178f1226975c3f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs deleted file mode 100644 index 6fa4db81..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs +++ /dev/null @@ -1,36 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Sets a random int value")]
- public class RandomInt : Action
- {
- [Tooltip("The minimum amount")]
- public SharedInt min;
- [Tooltip("The maximum amount")]
- public SharedInt max;
- [Tooltip("Is the maximum value inclusive?")]
- public bool inclusive;
- [Tooltip("The variable to store the result")]
- public SharedInt storeResult;
-
- public override TaskStatus OnUpdate()
- {
- if (inclusive) {
- storeResult.Value = Random.Range(min.Value, max.Value + 1);
- } else {
- storeResult.Value = Random.Range(min.Value, max.Value);
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- min.Value = 0;
- max.Value = 0;
- inclusive = false;
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs.meta deleted file mode 100644 index 2d3efdac..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/RandomInt.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 067384c41f33cff49bcdf6adec9da049
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs deleted file mode 100644 index e4821682..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Sets a bool value")]
- public class SetBool : Action
- {
- [Tooltip("The bool value to set")]
- public SharedBool boolValue;
- [Tooltip("The variable to store the result")]
- public SharedBool storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = boolValue.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- boolValue.Value = false;
- storeResult.Value = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs.meta deleted file mode 100644 index 33f077c7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetBool.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 55f244424a532d24bba59542e2f0fc59
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs deleted file mode 100644 index e9892ece..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Sets a float value")]
- public class SetFloat : Action
- {
- [Tooltip("The float value to set")]
- public SharedFloat floatValue;
- [Tooltip("The variable to store the result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = floatValue.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- floatValue.Value = 0;
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs.meta deleted file mode 100644 index 794328f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetFloat.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4d915065ba447c64ba05f8e2841c6efd
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs deleted file mode 100644 index e16fb31a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
-{
- [TaskCategory("Basic/Math")]
- [TaskDescription("Sets an int value")]
- public class SetInt : Action
- {
- [Tooltip("The int value to set")]
- public SharedInt intValue;
- [Tooltip("The variable to store the result")]
- public SharedInt storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = intValue.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- intValue.Value = 0;
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs.meta deleted file mode 100644 index c5a42a46..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Math/SetInt.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: da57a0a43f227e445b9311bae043401f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent.meta deleted file mode 100644 index 277f90de..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2
-guid: 7e052e6171d06ed43bea8c8143e7bce5
-folderAsset: yes
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs deleted file mode 100644 index 050f35e4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Gets the maximum acceleration of an agent as it follows a path, given in units / sec^2.. Returns Success.")]
- public class GetAcceleration : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [SharedRequired]
- [Tooltip("The NavMeshAgent acceleration")]
- public SharedFloat storeValue;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = navMeshAgent.acceleration;
-
- 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/NavMeshAgent/GetAcceleration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs.meta deleted file mode 100644 index 8640a76e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAcceleration.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7e00211632663cc43bc88ab068ab5d44
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs deleted file mode 100644 index f5378f2d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Gets the maximum turning speed in (deg/s) while following a path.. Returns Success.")]
- public class GetAngularSpeed : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [SharedRequired]
- [Tooltip("The NavMeshAgent angular speed")]
- public SharedFloat storeValue;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = navMeshAgent.angularSpeed;
-
- 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/NavMeshAgent/GetAngularSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs.meta deleted file mode 100644 index 6fd470cc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetAngularSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 110bcd7b4d1baae4096b5da6737c1e16
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs deleted file mode 100644 index c85ef613..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Gets the destination of the agent in world-space units. Returns Success.")]
- public class GetDestination : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [SharedRequired]
- [Tooltip("The NavMeshAgent destination")]
- public SharedVector3 storeValue;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = navMeshAgent.destination;
-
- 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/NavMeshAgent/GetDestination.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs.meta deleted file mode 100644 index e6090098..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetDestination.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4368ae3e22d36604697d420dff004cbe
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs deleted file mode 100644 index e2f49731..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Gets the distance between the agent's position and the destination on the current path. Returns Success.")]
- public class GetRemainingDistance : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [SharedRequired]
- [Tooltip("The remaining distance")]
- public SharedFloat storeValue;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = navMeshAgent.remainingDistance;
-
- 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/NavMeshAgent/GetRemainingDistance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs.meta deleted file mode 100644 index 8ac9d355..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetRemainingDistance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ab046b37543b6744aa440cd708a93b81
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs deleted file mode 100644 index 1969545f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Gets the maximum movement speed when following a path. Returns Success.")]
- public class GetSpeed : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [SharedRequired]
- [Tooltip("The NavMeshAgent speed")]
- public SharedFloat storeValue;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = navMeshAgent.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/NavMeshAgent/GetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs.meta deleted file mode 100644 index d395eea4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/GetSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b6397854a3aea4b44a5ab4ccf98d082d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs deleted file mode 100644 index c3ad27fb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Apply relative movement to the current position. Returns Success.")]
- public class Move : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The relative movement vector")]
- public SharedVector3 offset;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- navMeshAgent.Move(offset.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- offset = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta deleted file mode 100644 index 4217e2de..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Move.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 55ea16e678f6fae47a46affd3d22b883
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs deleted file mode 100644 index 3aa1a4bc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Clears the current path. Returns Success.")]
- public class ResetPath : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- navMeshAgent.ResetPath();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs.meta deleted file mode 100644 index 2e95416c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/ResetPath.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e90973887b9e7d04aafc5d13ecdfc8b9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs deleted file mode 100644 index bf62cb97..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Resumes the movement along the current path after a pause. Returns Success.")]
- public class Resume : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 || UNITY_5_5
- navMeshAgent.Resume();
-#else
- navMeshAgent.isStopped = false;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs.meta deleted file mode 100644 index 16e07057..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Resume.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2c87e343e0ec23041b0cf7d8090d4814
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs deleted file mode 100644 index 9473466d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Sets the maximum acceleration of an agent as it follows a path, given in units / sec^2. Returns Success.")]
- public class SetAcceleration : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The NavMeshAgent acceleration")]
- public SharedFloat acceleration;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- navMeshAgent.acceleration = acceleration.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- acceleration = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs.meta deleted file mode 100644 index e3090bce..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAcceleration.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a8357209bccc16442b549c580872bb05
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs deleted file mode 100644 index 3c7c7721..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Sets the maximum turning speed in (deg/s) while following a path. Returns Success.")]
- public class SetAngularSpeed : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The NavMeshAgent angular speed")]
- public SharedFloat angularSpeed;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- navMeshAgent.angularSpeed = angularSpeed.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- angularSpeed = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs.meta deleted file mode 100644 index 0b1d44a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetAngularSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0d8e213aa17540848b83b17ba1609c74
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs deleted file mode 100644 index 0efa0dba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Sets the destination of the agent in world-space units. Returns Success if the destination is valid.")]
- public class SetDestination: Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [SharedRequired]
- [Tooltip("The NavMeshAgent destination")]
- public SharedVector3 destination;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- return navMeshAgent.SetDestination(destination.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- destination = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs.meta deleted file mode 100644 index d5f1bde8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetDestination.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 55d9c2d20e895104181ae1b484868ead
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs deleted file mode 100644 index a1a4a51b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Sets the maximum movement speed when following a path. 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 NavMeshAgent speed")]
- public SharedFloat speed;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- navMeshAgent.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/NavMeshAgent/SetSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs.meta deleted file mode 100644 index 79a97d26..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/SetSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 34372b45870504b419f34165fb1fa4fb
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs deleted file mode 100644 index 0af7d480..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Stop movement of this agent along its current path. Returns Success.")]
- public class Stop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4 || UNITY_5_5
- navMeshAgent.Stop();
-#else
- navMeshAgent.isStopped = true;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta deleted file mode 100644 index 7a6ada0c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Stop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b20958b8b92e47f40ba3178c99576182
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs deleted file mode 100644 index d8107173..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-#if !(UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4)
-using UnityEngine.AI;
-#endif
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNavMeshAgent
-{
- [TaskCategory("Basic/NavMeshAgent")]
- [TaskDescription("Warps agent to the provided position. Returns Success.")]
- public class Warp : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position to warp to")]
- public SharedVector3 newPosition;
-
- // cache the navmeshagent component
- private NavMeshAgent navMeshAgent;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- navMeshAgent = currentGameObject.GetComponent<NavMeshAgent>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (navMeshAgent == null) {
- Debug.LogWarning("NavMeshAgent is null");
- return TaskStatus.Failure;
- }
-
- navMeshAgent.Warp(newPosition.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- newPosition = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta deleted file mode 100644 index 8a6d4812..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/NavMeshAgent/Warp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9d2356bfaf0a64b4d9d65d32708630db
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network.meta deleted file mode 100644 index 7226ca30..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2
-guid: 5c6c53ae71570844abe4d526c0f67273
-folderAsset: yes
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs deleted file mode 100644 index a382f73b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine.Networking;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNetwork
-{
- public class IsClient : Conditional
- {
- public override TaskStatus OnUpdate()
- {
- return NetworkClient.active ? TaskStatus.Success : TaskStatus.Failure;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs.meta deleted file mode 100644 index 8e0dada2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsClient.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2
-guid: 0762b2157086f9f43a3345a2afec412f
-timeCreated: 1433120444
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs deleted file mode 100644 index 737b6f32..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs +++ /dev/null @@ -1,12 +0,0 @@ -using UnityEngine.Networking;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityNetwork
-{
- public class IsServer : Conditional
- {
- public override TaskStatus OnUpdate()
- {
- return NetworkServer.active ? TaskStatus.Success : TaskStatus.Failure;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs.meta deleted file mode 100644 index dc684d4e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Network/IsServer.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2
-guid: b7cf87bcdeb87b54698789a35a4b8ff0
-timeCreated: 1433120429
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem.meta deleted file mode 100644 index 2c1fd0b2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 298b24307673c7a49b5cabe1dbcae115
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs deleted file mode 100644 index 38988c82..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Clear the Particle System.")]
- public class Clear : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- particleSystem.Clear();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta deleted file mode 100644 index 63db0e0c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Clear.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: de273e542591d5946a8728190438ae27
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs deleted file mode 100644 index 4ea0f3a3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores the duration of the Particle System.")]
- public class GetDuration : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The duration of the ParticleSystem")]
- [RequiredField]
- public SharedFloat storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- storeResult.Value = particleSystem.duration;
-#else
- storeResult.Value = particleSystem.main.duration;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta deleted file mode 100644 index f41e7cee..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetDuration.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 02a4d610e82f1854c87701c4d51957fb
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs deleted file mode 100644 index 740466e5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores the emission rate of the Particle System.")]
- public class GetEmissionRate : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The emission rate of the ParticleSystem")]
- [RequiredField]
- public SharedFloat storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if !(UNITY_5_1 || UNITY_5_2)
- Debug.Log("Warning: GetEmissionRate is not used in Unity 5.3 or later.");
-#else
- storeResult.Value = particleSystem.emissionRate;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta deleted file mode 100644 index 1658d847..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEmissionRate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3adb98115d27ec64da9b5f56391570be
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs deleted file mode 100644 index 2b6b57d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores if the Particle System is emitting particles.")]
- public class GetEnableEmission : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Is the Particle System emitting particles?")]
- [RequiredField]
- public SharedBool storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if !(UNITY_5_1 || UNITY_5_2)
- storeResult.Value = particleSystem.emission.enabled;
-#else
- storeResult.Value = particleSystem.enableEmission;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta deleted file mode 100644 index e894a6e4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetEnableEmission.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 81dc1a241a2c872409a7919742df7581
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs deleted file mode 100644 index b5a97797..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs +++ /dev/null @@ -1,47 +0,0 @@ -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores the gravity modifier of the Particle System.")]
- public class GetGravityModifier : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The gravity modifier of the ParticleSystem")]
- [RequiredField]
- public SharedFloat storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- storeResult.Value = particleSystem.duration;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = 0;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta deleted file mode 100644 index 3412f534..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetGravityModifier.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7001d2ab41ef4e64190afc7f9bce1876
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs deleted file mode 100644 index 5ee3b1de..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores if the Particle System should loop.")]
- public class GetLoop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Should the ParticleSystem loop?")]
- [RequiredField]
- public SharedBool storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- storeResult.Value = particleSystem.loop;
-#else
- storeResult.Value = particleSystem.main.loop;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = false;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta deleted file mode 100644 index bfa703a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 82f4ee8cf50887a4488fe6d0da18afc0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs deleted file mode 100644 index c53bbddd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores the max particles of the Particle System.")]
- public class GetMaxParticles : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The max particles of the ParticleSystem")]
- [RequiredField]
- public SharedFloat storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- storeResult.Value = particleSystem.maxParticles;
-#else
- storeResult.Value = particleSystem.main.maxParticles;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta deleted file mode 100644 index 8e026028..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetMaxParticles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 429771af65df81c49aaf4b34630473fe
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs deleted file mode 100644 index 06c4fe96..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores the particle count of the Particle System.")]
- public class GetParticleCount : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The particle count of the ParticleSystem")]
- [RequiredField]
- public SharedFloat storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- storeResult.Value = particleSystem.particleCount;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta deleted file mode 100644 index c1cfbc05..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetParticleCount.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f32e2ff9de4ff7b47a256ac3b51123c6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs deleted file mode 100644 index e23aac68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs +++ /dev/null @@ -1,50 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores the playback speed of the Particle System.")]
- public class GetPlaybackSpeed : 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 ParticleSystem")]
- [RequiredField]
- public SharedFloat storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- storeResult.Value = particleSystem.playbackSpeed;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- storeResult.Value = mainParticleSystem.simulationSpeed;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta deleted file mode 100644 index 12e27063..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetPlaybackSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f8f29f170ac706b498e7c933136d8036
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs deleted file mode 100644 index 315474d5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stores the time of the Particle System.")]
- public class GetTime : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The time of the ParticleSystem")]
- [RequiredField]
- public SharedFloat storeResult;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- storeResult.Value = particleSystem.time;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta deleted file mode 100644 index 0cd924dc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/GetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9b15c7efbf98f7649adf8dd4474b0579
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs deleted file mode 100644 index 49f56b98..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Is the Particle System alive?")]
- public class IsAlive : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- return particleSystem.IsAlive() ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta deleted file mode 100644 index aa294a13..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsAlive.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3d554784e9a9fa040a2446402ba3f10e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs deleted file mode 100644 index d0180464..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Is the Particle System paused?")]
- public class IsPaused : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- return particleSystem.isPaused ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta deleted file mode 100644 index 00a5c85f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPaused.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e4e9ab132f20dfa4095b3c90303ebf74
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs deleted file mode 100644 index ee9f9472..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Is the Particle System playing?")]
- public class IsPlaying : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- return particleSystem.isPlaying ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta deleted file mode 100644 index d3f13e4d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsPlaying.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 654b51e99f64bfb489e12866a569f00e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs deleted file mode 100644 index 39642507..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Is the Particle System stopped?")]
- public class IsStopped : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- return particleSystem.isStopped ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta deleted file mode 100644 index d0a054fb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/IsStopped.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c719a7379c22b184380b4e63ccdfd064
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs deleted file mode 100644 index 496b2db5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Pause the Particle System.")]
- public class Pause : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- particleSystem.Pause();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta deleted file mode 100644 index d6e60239..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Pause.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c9c9cc56691817b49af4fd1cfbc3e363
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs deleted file mode 100644 index 6797351c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Play the Particle System.")]
- public class Play : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- particleSystem.Play();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta deleted file mode 100644 index 276c73c4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Play.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a8ffb889d35074d4fb08d8502155c0b2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs deleted file mode 100644 index 2034a071..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the emission rate of the Particle System.")]
- public class SetEmissionRate : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The emission rate of the ParticleSystem")]
- public SharedFloat emissionRate;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if !(UNITY_5_1 || UNITY_5_2)
- Debug.Log("Warning: SetEmissionRate is not used in Unity 5.3 or later.");
-#else
- particleSystem.emissionRate = emissionRate.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- emissionRate = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta deleted file mode 100644 index ac56602a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEmissionRate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a8300eee629ad77419f2eb91477a0b62
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs deleted file mode 100644 index eedcc59e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Enables or disables the Particle System emission.")]
- public class SetEnableEmission : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Enable the ParticleSystem emissions?")]
- public SharedBool enable;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if !(UNITY_5_1 || UNITY_5_2)
- var emission = particleSystem.emission;
- emission.enabled = enable.Value;
-#else
- particleSystem.enableEmission = enable.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- enable = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta deleted file mode 100644 index d5d77a69..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetEnableEmission.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f7c295b4d24628146a885d21bf699993
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs deleted file mode 100644 index e11dcd85..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs +++ /dev/null @@ -1,46 +0,0 @@ -#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
-using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the gravity modifier of the Particle System.")]
- public class SetGravityModifier : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The gravity modifier of the ParticleSystem")]
- public SharedFloat gravityModifier;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- particleSystem.gravityModifier = gravityModifier.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- gravityModifier = 0;
- }
- }
-}
-#endif
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta deleted file mode 100644 index 8337a101..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetGravityModifier.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c1a6694791042df4ea2097a2508bd8de
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs deleted file mode 100644 index 27e49635..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets if the Particle System should loop.")]
- public class SetLoop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Should the ParticleSystem loop?")]
- public SharedBool loop;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.loop = loop.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.loop = loop.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- loop = false;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta deleted file mode 100644 index 169ffad8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetLoop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b9fa90adc0377cc4592de00e410a4060
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs deleted file mode 100644 index 705c7919..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the max particles of the Particle System.")]
- public class SetMaxParticles : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The max particles of the ParticleSystem")]
- public SharedInt maxParticles;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.maxParticles = maxParticles.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.maxParticles = maxParticles.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- maxParticles = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta deleted file mode 100644 index 8549f671..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetMaxParticles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: eadca930ad32a404886060ee43e4d802
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs deleted file mode 100644 index a520a196..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the playback speed of the Particle System.")]
- public class SetPlaybackSpeed : 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 ParticleSystem")]
- public SharedFloat playbackSpeed = 1;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.playbackSpeed = playbackSpeed.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.simulationSpeed= playbackSpeed.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- playbackSpeed = 1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta deleted file mode 100644 index 1c0afbdb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetPlaybackSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8f4d79e34ac8820458a2813895d3962d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs deleted file mode 100644 index 498c96cc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the start color of the Particle System.")]
- public class SetStartColor : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The start color of the ParticleSystem")]
- public SharedColor startColor;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.startColor = startColor.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.startColor = startColor.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- startColor = Color.white;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta deleted file mode 100644 index 12432173..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f91be163d0c01ec42bf120c267dcceea
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs deleted file mode 100644 index e11bcdb1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the start delay of the Particle System.")]
- public class SetStartDelay : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The start delay of the ParticleSystem")]
- public SharedFloat startDelay;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.startDelay = startDelay.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.startDelay = startDelay.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- startDelay = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta deleted file mode 100644 index fb4c01f5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartDelay.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 532026cf3b430c840897e66bdde5006e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs deleted file mode 100644 index 9246543a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the start lifetime of the Particle System.")]
- public class SetStartLifetime : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The start lifetime of the ParticleSystem")]
- public SharedFloat startLifetime;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.startLifetime = startLifetime.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.startLifetime = startLifetime.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- startLifetime = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta deleted file mode 100644 index 361689aa..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartLifetime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 311b9ed850b4e2243ae44487b9ece819
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs deleted file mode 100644 index 4cd78608..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the start rotation of the Particle System.")]
- public class SetStartRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The start rotation of the ParticleSystem")]
- public SharedFloat startRotation;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.startRotation = startRotation.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.startRotation = startRotation.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- startRotation = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta deleted file mode 100644 index c995958e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ae611ab09913de6438aeb81d7a621c51
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs deleted file mode 100644 index 87dbbe39..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the start size of the Particle System.")]
- public class SetStartSize : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The start size of the ParticleSystem")]
- public SharedFloat startSize;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.startSize = startSize.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.startSize = startSize.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- startSize = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta deleted file mode 100644 index d697099c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d7be6a1da3f4f7a418e5739a6cc6e78e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs deleted file mode 100644 index 52bd8072..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs +++ /dev/null @@ -1,49 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the start speed of the Particle System.")]
- public class SetStartSpeed : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The start speed of the ParticleSystem")]
- public SharedFloat startSpeed;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
-#if UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
- particleSystem.startSpeed = startSpeed.Value;
-#else
- ParticleSystem.MainModule mainParticleSystem = particleSystem.main;
- mainParticleSystem.startSpeed = startSpeed.Value;
-#endif
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- startSpeed = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta deleted file mode 100644 index f87bf954..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetStartSpeed.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b7716318475d3854a96729d1a7540d4a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs deleted file mode 100644 index 41f2e9eb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Sets the time of the Particle System.")]
- public class SetTime : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The time of the ParticleSystem")]
- public SharedFloat time;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- particleSystem.time = time.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- time = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta deleted file mode 100644 index 2788eb15..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/SetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 103e78e9c755fe3469e63115eb1c0d80
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs deleted file mode 100644 index fcf70cfb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Simulate the Particle System.")]
- public class Simulate : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Time to fastfoward the Particle System to")]
- public SharedFloat time;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- particleSystem.Simulate(time.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- time = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta deleted file mode 100644 index c703cb24..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Simulate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 24d79d661acf61e44918320624b49dd5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs deleted file mode 100644 index 2ed84c15..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
-{
- [TaskCategory("Basic/ParticleSystem")]
- [TaskDescription("Stop the Particle System.")]
- public class Stop : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private ParticleSystem particleSystem;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- particleSystem = currentGameObject.GetComponent<ParticleSystem>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (particleSystem == null) {
- Debug.LogWarning("ParticleSystem is null");
- return TaskStatus.Failure;
- }
-
- particleSystem.Stop();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta deleted file mode 100644 index 695ec19d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/ParticleSystem/Stop.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fd83617024d6bff44824a83b472db8e6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics.meta deleted file mode 100644 index ef52383d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: f029d04458be91f4d9b9bec1c9ccfde7
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs deleted file mode 100644 index fb82128e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics
-{
- [TaskCategory("Basic/Physics")]
- [TaskDescription("Returns success if there is any collider intersecting the line between start and end")]
- [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=117")]
- public class Linecast : Action
- {
- [Tooltip("The starting position of the linecast")]
- SharedVector3 startPosition;
- [Tooltip("The ending position of the linecast")]
- SharedVector3 endPosition;
- [Tooltip("Selectively ignore colliders.")]
- public LayerMask layerMask = -1;
-
- public override TaskStatus OnUpdate()
- {
- return Physics.Linecast(startPosition.Value, endPosition.Value, layerMask) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- startPosition = Vector3.zero;
- endPosition = Vector3.zero;
- layerMask = -1;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs.meta deleted file mode 100644 index c380726f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Linecast.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 163f5567b8906cd45adf138c3c022152
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs deleted file mode 100644 index d79c9ae9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs +++ /dev/null @@ -1,71 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics
-{
- [TaskCategory("Basic/Physics")]
- [TaskDescription("Casts a ray against all colliders in the scene. Returns success if a collider was hit.")]
- [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=117")]
- public class Raycast : Action
- {
- [Tooltip("Starts the ray at the GameObject's position. If null the originPosition will be used")]
- public SharedGameObject originGameObject;
- [Tooltip("Starts the ray at the position. Only used if originGameObject is null")]
- public SharedVector3 originPosition;
- [Tooltip("The direction of the ray")]
- public SharedVector3 direction;
- [Tooltip("The length of the ray. Set to -1 for infinity")]
- public SharedFloat distance = -1;
- [Tooltip("Selectively ignore colliders")]
- public LayerMask layerMask = -1;
- [Tooltip("Cast the ray in world or local space. The direction is in world space if no GameObject is specified")]
- public Space space = Space.Self;
-
- [SharedRequired]
- [Tooltip("Stores the hit object of the raycast")]
- public SharedGameObject storeHitObject;
- [SharedRequired]
- [Tooltip("Stores the hit point of the raycast")]
- public SharedVector3 storeHitPoint;
- [SharedRequired]
- [Tooltip("Stores the hit normal of the raycast")]
- public SharedVector3 storeHitNormal;
- [SharedRequired]
- [Tooltip("Stores the hit distance of the raycast")]
- public SharedFloat storeHitDistance;
-
- public override TaskStatus OnUpdate()
- {
- Vector3 position;
- Vector3 dir = direction.Value;
- if (originGameObject.Value != null) {
- position = originGameObject.Value.transform.position;
- if (space == Space.Self) {
- dir = originGameObject.Value.transform.TransformDirection(direction.Value);
- }
- } else {
- position = originPosition.Value;
- }
-
- RaycastHit hit;
- if (Physics.Raycast(position, dir, out hit, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask)) {
- storeHitObject.Value = hit.collider.gameObject;
- storeHitPoint.Value = hit.point;
- storeHitNormal.Value = hit.normal;
- storeHitDistance.Value = hit.distance;
- return TaskStatus.Success;
- }
-
- return TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- originGameObject = null;
- originPosition = Vector3.zero;
- direction = Vector3.zero;
- distance = -1;
- layerMask = -1;
- space = Space.Self;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs.meta deleted file mode 100644 index b5f5d6d9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Raycast.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: afcf9d39edef45146ad7a043b8bfa76e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs deleted file mode 100644 index da1c646e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs +++ /dev/null @@ -1,74 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics
-{
- [TaskCategory("Basic/Physics")]
- [TaskDescription("Casts a sphere against all colliders in the scene. Returns success if a collider was hit.")]
- [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=117")]
- public class SphereCast : Action
- {
- [Tooltip("Starts the spherecast at the GameObject's position. If null the originPosition will be used")]
- public SharedGameObject originGameObject;
- [Tooltip("Starts the sherecast at the position. Only used if originGameObject is null")]
- public SharedVector3 originPosition;
- [Tooltip("The radius of the spherecast")]
- public SharedFloat radius;
- [Tooltip("The direction of the spherecast")]
- public SharedVector3 direction;
- [Tooltip("The length of the spherecast. Set to -1 for infinity")]
- public SharedFloat distance = -1;
- [Tooltip("Selectively ignore colliders")]
- public LayerMask layerMask = -1;
- [Tooltip("Use world or local space. The direction is in world space if no GameObject is specified")]
- public Space space = Space.Self;
-
- [SharedRequired]
- [Tooltip("Stores the hit object of the spherecast")]
- public SharedGameObject storeHitObject;
- [SharedRequired]
- [Tooltip("Stores the hit point of the spherecast")]
- public SharedVector3 storeHitPoint;
- [SharedRequired]
- [Tooltip("Stores the hit normal of the spherecast")]
- public SharedVector3 storeHitNormal;
- [SharedRequired]
- [Tooltip("Stores the hit distance of the spherecast")]
- public SharedFloat storeHitDistance;
-
- public override TaskStatus OnUpdate()
- {
- Vector3 position;
- Vector3 dir = direction.Value;
- if (originGameObject.Value != null) {
- position = originGameObject.Value.transform.position;
- if (space == Space.Self) {
- dir = originGameObject.Value.transform.TransformDirection(direction.Value);
- }
- } else {
- position = originPosition.Value;
- }
-
- RaycastHit hit;
- if (Physics.SphereCast(position, radius.Value, dir, out hit, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask)) {
- storeHitObject.Value = hit.collider.gameObject;
- storeHitPoint.Value = hit.point;
- storeHitNormal.Value = hit.normal;
- storeHitDistance.Value = hit.distance;
- return TaskStatus.Success;
- }
-
- return TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- originGameObject = null;
- originPosition = Vector3.zero;
- radius = 0;
- direction = Vector3.zero;
- distance = -1;
- layerMask = -1;
- space = Space.Self;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs.meta deleted file mode 100644 index 24ed1701..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics/Spherecast.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2058f3f94c5bdf5409f9ff80ea61d44a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D.meta deleted file mode 100644 index 001ba091..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 056a8d0f58dcb4749949548a468e90c0
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs deleted file mode 100644 index 516abc72..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs +++ /dev/null @@ -1,73 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics2D
-{
- [TaskCategory("Basic/Physics2D")]
- [TaskDescription("Casts a circle against all colliders in the scene. Returns success if a collider was hit.")]
- [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=118")]
- public class Circlecast : Action
- {
- [Tooltip("Starts the circlecast at the GameObject's position. If null the originPosition will be used.")]
- public SharedGameObject originGameObject;
- [Tooltip("Starts the circlecast at the position. Only used if originGameObject is null.")]
- public SharedVector2 originPosition;
- [Tooltip("The radius of the circlecast")]
- public SharedFloat radius;
- [Tooltip("The direction of the circlecast")]
- public SharedVector2 direction;
- [Tooltip("The length of the ray. Set to -1 for infinity.")]
- public SharedFloat distance = -1;
- [Tooltip("Selectively ignore colliders.")]
- public LayerMask layerMask = -1;
- [Tooltip("Use world or local space. The direction is in world space if no GameObject is specified.")]
- public Space space = Space.Self;
-
- [SharedRequired]
- [Tooltip("Stores the hit object of the circlecast.")]
- public SharedGameObject storeHitObject;
- [SharedRequired]
- [Tooltip("Stores the hit point of the circlecast.")]
- public SharedVector2 storeHitPoint;
- [SharedRequired]
- [Tooltip("Stores the hit normal of the circlecast.")]
- public SharedVector2 storeHitNormal;
- [SharedRequired]
- [Tooltip("Stores the hit distance of the circlecast.")]
- public SharedFloat storeHitDistance;
-
- public override TaskStatus OnUpdate()
- {
- Vector2 position;
- Vector2 dir = direction.Value;
- if (originGameObject.Value != null) {
- position = originGameObject.Value.transform.position;
- if (space == Space.Self) {
- dir = originGameObject.Value.transform.TransformDirection(direction.Value);
- }
- } else {
- position = originPosition.Value;
- }
-
- var hit = Physics2D.CircleCast(position, radius.Value, dir, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask);
- if (hit.collider != null) {
- storeHitObject.Value = hit.collider.gameObject;
- storeHitPoint.Value = hit.point;
- storeHitNormal.Value = hit.normal;
- storeHitDistance.Value = hit.distance;
- return TaskStatus.Success;
- }
- return TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- originGameObject = null;
- originPosition = Vector2.zero;
- direction = Vector2.zero;
- radius = 0;
- distance = -1;
- layerMask = -1;
- space = Space.Self;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs.meta deleted file mode 100644 index 541b96a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Circlecast.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6989aa8730764ee459a07f88d84302e0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs deleted file mode 100644 index 914b6fee..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics2D
-{
- [TaskCategory("Basic/Physics2D")]
- [TaskDescription("Returns success if there is any collider intersecting the line between start and end")]
- [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=118")]
- public class Linecast : Action
- {
- [Tooltip("The starting position of the linecast.")]
- SharedVector2 startPosition;
- [Tooltip("The ending position of the linecast.")]
- SharedVector2 endPosition;
- [Tooltip("Selectively ignore colliders.")]
- public LayerMask layerMask = -1;
-
- public override TaskStatus OnUpdate()
- {
- return Physics2D.Linecast(startPosition.Value, endPosition.Value, layerMask) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- startPosition = Vector2.zero;
- endPosition = Vector2.zero;
- layerMask = -1;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs.meta deleted file mode 100644 index 6aa9170f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Linecast.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a402dbfe872764f49b3a03d7048e866e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs deleted file mode 100644 index 2bc51b80..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs +++ /dev/null @@ -1,72 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPhysics2D
-{
- [TaskCategory("Basic/Physics2D")]
- [TaskDescription("Casts a ray against all colliders in the scene. Returns success if a collider was hit.")]
- [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=118")]
- public class Raycast : Action
- {
- [Tooltip("Starts the ray at the GameObject's position. If null the originPosition will be used.")]
- public SharedGameObject originGameObject;
- [Tooltip("Starts the ray at the position. Only used if originGameObject is null.")]
- public SharedVector2 originPosition;
- [Tooltip("The direction of the ray")]
- public SharedVector2 direction;
- [Tooltip("The length of the ray. Set to -1 for infinity.")]
- public SharedFloat distance = -1;
- [Tooltip("Selectively ignore colliders.")]
- public LayerMask layerMask = -1;
- [Tooltip("Cast the ray in world or local space. The direction is in world space if no GameObject is specified.")]
- public Space space = Space.Self;
-
- [SharedRequired]
- [Tooltip("Stores the hit object of the raycast.")]
- public SharedGameObject storeHitObject;
- [SharedRequired]
- [Tooltip("Stores the hit point of the raycast.")]
- public SharedVector2 storeHitPoint;
- [SharedRequired]
- [Tooltip("Stores the hit normal of the raycast.")]
- public SharedVector2 storeHitNormal;
- [SharedRequired]
- [Tooltip("Stores the hit distance of the raycast.")]
- public SharedFloat storeHitDistance;
-
- public override TaskStatus OnUpdate()
- {
- Vector2 position;
- Vector2 dir = direction.Value;
- if (originGameObject.Value != null) {
- position = originGameObject.Value.transform.position;
- if (space == Space.Self) {
- dir = originGameObject.Value.transform.TransformDirection(direction.Value);
- }
- } else {
- position = originPosition.Value;
- }
-
- var hit = Physics2D.Raycast(position, dir, distance.Value == -1 ? Mathf.Infinity : distance.Value, layerMask);
- if (hit.collider != null) {
- storeHitObject.Value = hit.collider.gameObject;
- storeHitPoint.Value = hit.point;
- storeHitNormal.Value = hit.normal;
-#if !UNITY_4_3
- storeHitDistance.Value = hit.distance;
-#endif
- return TaskStatus.Success;
- }
- return TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- originGameObject = null;
- originPosition = Vector2.zero;
- direction = Vector2.zero;
- distance = -1;
- layerMask = -1;
- space = Space.Self;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs.meta deleted file mode 100644 index f2f98446..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Physics2D/Raycast.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 513dc641bb68bcc4d9c3bdfb1ccc57b6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs.meta deleted file mode 100644 index f2ebde67..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: ae97053a4ac34f74d8edc5c635b28bda
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs deleted file mode 100644 index 0562303f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Deletes all entries from the PlayerPrefs.")]
- public class DeleteAll : Action
- {
- public override TaskStatus OnUpdate()
- {
- PlayerPrefs.DeleteAll();
-
- return TaskStatus.Success;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs.meta deleted file mode 100644 index 707b849e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0c6d6b2dabc08ac42875cdbe1f86642b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs deleted file mode 100644 index 8fc4c352..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Deletes the specified key from the PlayerPrefs.")]
- public class DeleteKey : Action
- {
- [Tooltip("The key to delete")]
- public SharedString key;
-
- public override TaskStatus OnUpdate()
- {
- PlayerPrefs.DeleteKey(key.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs.meta deleted file mode 100644 index 4f322aea..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteKey.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ed24098bd046f724e90474d47e1677d3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs deleted file mode 100644 index 839980b5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Stores the value with the specified key from the PlayerPrefs.")]
- public class GetFloat : Action
- {
- [Tooltip("The key to store")]
- public SharedString key;
- [Tooltip("The default value")]
- public SharedFloat defaultValue;
- [Tooltip("The value retrieved from the PlayerPrefs")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = PlayerPrefs.GetFloat(key.Value, defaultValue.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = "";
- defaultValue = 0;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs.meta deleted file mode 100644 index 1252e252..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetFloat.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 14752e1987d17d546838a32459045c67
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs deleted file mode 100644 index 3dca7702..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Stores the value with the specified key from the PlayerPrefs.")]
- public class GetInt : Action
- {
- [Tooltip("The key to store")]
- public SharedString key;
- [Tooltip("The default value")]
- public SharedInt defaultValue;
- [Tooltip("The value retrieved from the PlayerPrefs")]
- [RequiredField]
- public SharedInt storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = PlayerPrefs.GetInt(key.Value, defaultValue.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = "";
- defaultValue = 0;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta deleted file mode 100644 index 6e1a400d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetInt.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 66c5c9cfd0fb52344875db0cefc5d6f8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs deleted file mode 100644 index a3d98a97..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Stores the value with the specified key from the PlayerPrefs.")]
- public class GetString : Action
- {
- [Tooltip("The key to store")]
- public SharedString key;
- [Tooltip("The default value")]
- public SharedString defaultValue;
- [Tooltip("The value retrieved from the PlayerPrefs")]
- [RequiredField]
- public SharedString storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = PlayerPrefs.GetString(key.Value, defaultValue.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = "";
- defaultValue = "";
- storeResult = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs.meta deleted file mode 100644 index 155d968b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/GetString.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 418066da4d19f1742a6435c0ee7aa01b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs deleted file mode 100644 index 2983fc05..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Retruns success if the specified key exists.")]
- public class HasKey : Conditional
- {
- [Tooltip("The key to check")]
- public SharedString key;
-
- public override TaskStatus OnUpdate()
- {
- return PlayerPrefs.HasKey(key.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- key = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta deleted file mode 100644 index 49883dfe..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/HasKey.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3b16fab74ec9f364f911696814716ca2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs deleted file mode 100644 index 627fe81a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs +++ /dev/null @@ -1,16 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Saves the PlayerPrefs.")]
- public class Save : Action
- {
- public override TaskStatus OnUpdate()
- {
- PlayerPrefs.Save();
-
- return TaskStatus.Success;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta deleted file mode 100644 index a03bd8c4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/Save.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 898765f1bc90e154e9cab895a814221e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs deleted file mode 100644 index 69b578ca..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Sets the value with the specified key from the PlayerPrefs.")]
- public class SetFloat : Action
- {
- [Tooltip("The key to store")]
- public SharedString key;
- [Tooltip("The value to set")]
- public SharedFloat value;
-
- public override TaskStatus OnUpdate()
- {
- PlayerPrefs.SetFloat(key.Value, value.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = "";
- value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs.meta deleted file mode 100644 index 87a00ef2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetFloat.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 88feec854545b9b428ed714fbebe872f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs deleted file mode 100644 index 3e41760f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Sets the value with the specified key from the PlayerPrefs.")]
- public class SetInt : Action
- {
- [Tooltip("The key to store")]
- public SharedString key;
- [Tooltip("The value to set")]
- public SharedInt value;
-
- public override TaskStatus OnUpdate()
- {
- PlayerPrefs.SetInt(key.Value, value.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = "";
- value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta deleted file mode 100644 index c9920342..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetInt.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ad23859aa9f9e68468891ba9600b9828
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs deleted file mode 100644 index 69426c56..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
-{
- [TaskCategory("Basic/PlayerPrefs")]
- [TaskDescription("Sets the value with the specified key from the PlayerPrefs.")]
- public class SetString : Action
- {
- [Tooltip("The key to store")]
- public SharedString key;
- [Tooltip("The value to set")]
- public SharedString value;
-
- public override TaskStatus OnUpdate()
- {
- PlayerPrefs.SetString(key.Value, value.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- key = "";
- value = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs.meta deleted file mode 100644 index bb989dbd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/SetString.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 923ae6162a2661e47be9af80a19e48b6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion.meta deleted file mode 100644 index 8e62c708..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: fdfca1ec6223a5644919a38e092a933c
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs deleted file mode 100644 index a6e485ef..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the angle in degrees between two rotations.")]
- public class Angle : Action
- {
- [Tooltip("The first rotation")]
- public SharedQuaternion firstRotation;
- [Tooltip("The second rotation")]
- public SharedQuaternion secondRotation;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.Angle(firstRotation.Value, secondRotation.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- firstRotation = secondRotation = Quaternion.identity;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs.meta deleted file mode 100644 index 0aa20992..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Angle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 0d316a25dcddd6f4a981df05a1eeaf7c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs deleted file mode 100644 index 4c6eecf9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the rotation which rotates the specified degrees around the specified axis.")]
- public class AngleAxis : Action
- {
- [Tooltip("The number of degrees")]
- public SharedFloat degrees;
- [Tooltip("The axis direction")]
- public SharedVector3 axis;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.AngleAxis(degrees.Value, axis.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- degrees = 0;
- axis = Vector3.zero;
- storeResult = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs.meta deleted file mode 100644 index 99c4ba7b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/AngleAxis.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 82152b844829f8f43ab44f35bf7d786f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs deleted file mode 100644 index d00fa95b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the dot product between two rotations.")]
- public class Dot : Action
- {
- [Tooltip("The first rotation")]
- public SharedQuaternion leftRotation;
- [Tooltip("The second rotation")]
- public SharedQuaternion rightRotation;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.Dot(leftRotation.Value, rightRotation.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- leftRotation = rightRotation = Quaternion.identity;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs.meta deleted file mode 100644 index 40a00107..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Dot.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fa9235523569d574aa7d22ce89423eca
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs deleted file mode 100644 index e9930832..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the quaternion of a euler vector.")]
- public class Euler : Action
- {
- [Tooltip("The euler vector")]
- public SharedVector3 eulerVector;
- [Tooltip("The stored quaternion")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.Euler(eulerVector.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- eulerVector = Vector3.zero;
- storeResult = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs.meta deleted file mode 100644 index 048cc76c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Euler.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b4d275b4450a324409ace385a718d9ee
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs deleted file mode 100644 index 5e68b434..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores a rotation which rotates from the first direction to the second.")]
- public class FromToRotation : Action
- {
- [Tooltip("The from rotation")]
- public SharedVector3 fromDirection;
- [Tooltip("The to rotation")]
- public SharedVector3 toDirection;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.FromToRotation(fromDirection.Value, toDirection.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromDirection = toDirection = Vector3.zero;
- storeResult = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs.meta deleted file mode 100644 index d5836cfa..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/FromToRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 56740b2c218d500408dd75c6c15006ec
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs deleted file mode 100644 index 5c8c104a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the quaternion identity.")]
- public class Identity : Action
- {
- [Tooltip("The identity")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.identity;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs.meta deleted file mode 100644 index e8968d73..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Identity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f4eefb6e25898904688a422ca79d763c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs deleted file mode 100644 index e0085ded..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs +++ /dev/null @@ -1,26 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the inverse of the specified quaternion.")]
- public class Inverse : Action
- {
- [Tooltip("The target quaternion")]
- public SharedQuaternion targetQuaternion;
- [Tooltip("The stored quaternion")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.Inverse(targetQuaternion.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetQuaternion = storeResult = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs.meta deleted file mode 100644 index e255f8bf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Inverse.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ab8f5048bc0e5ce409bf3408c60bc3eb
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs deleted file mode 100644 index faea9019..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Lerps between two quaternions.")]
- public class Lerp : Action
- {
- [Tooltip("The from rotation")]
- public SharedQuaternion fromQuaternion;
- [Tooltip("The to rotation")]
- public SharedQuaternion toQuaternion;
- [Tooltip("The amount to lerp")]
- public SharedFloat amount;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.Lerp(fromQuaternion.Value, toQuaternion.Value, amount.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromQuaternion = toQuaternion = storeResult = Quaternion.identity;
- amount = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs.meta deleted file mode 100644 index 4711a2b8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Lerp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fb19d83a245337542a5c0f02593e8dab
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs deleted file mode 100644 index 8e8bf5ab..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the quaternion of a forward vector.")]
- public class LookRotation : Action
- {
- [Tooltip("The forward vector")]
- public SharedVector3 forwardVector;
- [Tooltip("The second Vector3")]
- public SharedVector3 secondVector3;
- [Tooltip("The stored quaternion")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.LookRotation(forwardVector.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- forwardVector = Vector3.zero;
- storeResult = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs.meta deleted file mode 100644 index b58cb08b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/LookRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e006fb91f87854448b9bd6cb1d20b2f1
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs deleted file mode 100644 index 77975891..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Stores the quaternion after a rotation.")]
- public class RotateTowards : Action
- {
- [Tooltip("The from rotation")]
- public SharedQuaternion fromQuaternion;
- [Tooltip("The to rotation")]
- public SharedQuaternion toQuaternion;
- [Tooltip("The maximum degrees delta")]
- public SharedFloat maxDeltaDegrees;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.RotateTowards(fromQuaternion.Value, toQuaternion.Value, maxDeltaDegrees.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromQuaternion = toQuaternion = storeResult = Quaternion.identity;
- maxDeltaDegrees = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs.meta deleted file mode 100644 index 4a037c77..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/RotateTowards.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b5e043a106ab4784aab997fa0e27f972
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs deleted file mode 100644 index 88cac7e6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityQuaternion
-{
- [TaskCategory("Basic/Quaternion")]
- [TaskDescription("Spherically lerp between two quaternions.")]
- public class Slerp : Action
- {
- [Tooltip("The from rotation")]
- public SharedQuaternion fromQuaternion;
- [Tooltip("The to rotation")]
- public SharedQuaternion toQuaternion;
- [Tooltip("The amount to lerp")]
- public SharedFloat amount;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedQuaternion storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Quaternion.Slerp(fromQuaternion.Value, toQuaternion.Value, amount.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromQuaternion = toQuaternion = storeResult = Quaternion.identity;
- amount = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs.meta deleted file mode 100644 index 6e1d7577..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Quaternion/Slerp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b36eacb0f1a46624193a622ef50979ff
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer.meta deleted file mode 100644 index 700baf06..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: b7bee06bd6fde844784243b656f96db8
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs deleted file mode 100644 index b0e6df91..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRenderer
-{
- [TaskCategory("Basic/Renderer")]
- [TaskDescription("Returns Success if the Renderer is visible, otherwise Failure.")]
- public class IsVisible : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the renderer component
- private Renderer renderer;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- renderer = currentGameObject.GetComponent<Renderer>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (renderer == null) {
- Debug.LogWarning("Renderer is null");
- return TaskStatus.Failure;
- }
-
- return renderer.isVisible ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs.meta deleted file mode 100644 index da61b0d5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/IsVisible.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3b6ba7f7e8884c14c9ef4a74b50b0a8e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs deleted file mode 100644 index e6ebbb37..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRenderer
-{
- [TaskCategory("Basic/Renderer")]
- [TaskDescription("Sets the material on the Renderer.")]
- public class SetMaterial : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The material to set")]
- public SharedMaterial material;
-
- // cache the renderer component
- private Renderer renderer;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- renderer = currentGameObject.GetComponent<Renderer>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (renderer == null) {
- Debug.LogWarning("Renderer is null");
- return TaskStatus.Failure;
- }
-
- renderer.material = material.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- material = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs.meta deleted file mode 100644 index b77ae7d1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Renderer/SetMaterial.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: bf71e4b9292cad342877356107f76d39
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody.meta deleted file mode 100644 index fdb14dec..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: f560fb42f946dcb4a819c0cca91d9c9d
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs deleted file mode 100644 index 2d313eb4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs +++ /dev/null @@ -1,57 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force to the rigidbody that simulates explosion effects. Returns Success.")]
- public class AddExplosionForce : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The force of the explosion")]
- public SharedFloat explosionForce;
- [Tooltip("The position of the explosion")]
- public SharedVector3 explosionPosition;
- [Tooltip("The radius of the explosion")]
- public SharedFloat explosionRadius;
- [Tooltip("Applies the force as if it was applied from beneath the object")]
- public float upwardsModifier = 0;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddExplosionForce(explosionForce.Value, explosionPosition.Value, explosionRadius.Value, upwardsModifier, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- explosionForce = 0;
- explosionPosition = Vector3.zero;
- explosionRadius = 0;
- upwardsModifier = 0;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta deleted file mode 100644 index 46e4e7f6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ccb592e850d4c734995a2a1c3f930b62
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs deleted file mode 100644 index 9e7ff1a9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [RequiredComponent(typeof(Rigidbody))]
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force to the rigidbody. Returns Success.")]
- public class AddForce : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector3 force;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddForce(force.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- if (force != null) {
- force.Value = Vector3.zero;
- }
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta deleted file mode 100644 index 2ff832db..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5748d4214b99b8c49ba67902a8495a30
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs deleted file mode 100644 index c76f34c1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force at the specified position to the rigidbody. Returns Success.")]
- public class AddForceAtPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector3 force;
- [Tooltip("The position of the force")]
- public SharedVector3 position;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddForceAtPosition(force.Value, position.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- force = Vector3.zero;
- position = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta deleted file mode 100644 index e299a9ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c3938bcd4e88b45419aa86adee51a2c2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs deleted file mode 100644 index 57e1a9d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force to the rigidbody relative to its coordinate system. Returns Success.")]
- public class AddRelativeForce : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector3 force;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddRelativeForce(force.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- force = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta deleted file mode 100644 index be56eac2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1de05a2b6197b2d4b9da1c36bf382649
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs deleted file mode 100644 index ec901665..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a torque to the rigidbody relative to its coordinate system. Returns Success.")]
- public class AddRelativeTorque : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of torque to apply")]
- public SharedVector3 torque;
- [Tooltip("The type of torque")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- rigidbody.AddRelativeTorque(torque.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- torque = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta deleted file mode 100644 index 3bba15eb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 71136c1193309b24c93d450b5f2e47be
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs deleted file mode 100644 index 35282d09..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a torque to the rigidbody. Returns Success.")]
- public class AddTorque : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of torque to apply")]
- public SharedVector3 torque;
- [Tooltip("The type of torque")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddTorque(torque.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- torque = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta deleted file mode 100644 index 4e6e47c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 88c726c1cb324e6429637f55d36c3d01
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs deleted file mode 100644 index 9aed491c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the angular drag of the Rigidbody. Returns Success.")]
- public class GetAngularDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular drag of the Rigidbody")]
- [RequiredField]
- public SharedFloat storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.angularDrag;
-
- 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/Rigidbody/GetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta deleted file mode 100644 index f82dda03..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5fb34b334a02db64db2d6a2fb2448be5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs deleted file mode 100644 index 556f52e1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the angular velocity of the Rigidbody. Returns Success.")]
- public class GetAngularVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular velocity of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.angularVelocity;
-
- 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/Rigidbody/GetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta deleted file mode 100644 index c4f98927..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 492dc3a13d07ed149bcd19d36e2f7ee7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs deleted file mode 100644 index 59c7429c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the center of mass of the Rigidbody. Returns Success.")]
- public class GetCenterOfMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of mass of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.centerOfMass;
-
- 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/Rigidbody/GetCenterOfMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta deleted file mode 100644 index 8c175632..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b993020e1d60f5242a7e3618501f871e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs deleted file mode 100644 index 423e79b0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the drag of the Rigidbody. Returns Success.")]
- public class GetDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The drag of the Rigidbody")]
- [RequiredField]
- public SharedFloat storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.drag;
-
- 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/Rigidbody/GetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta deleted file mode 100644 index ab90b18b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 69bd087f6899c604f82441b108ead2a8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs deleted file mode 100644 index 0a26f2c1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the freeze rotation value of the Rigidbody. Returns Success.")]
- public class GetFreezeRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The freeze rotation value of the Rigidbody")]
- [RequiredField]
- public SharedBool storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.freezeRotation;
-
- 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/Rigidbody/GetFreezeRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta deleted file mode 100644 index dad7aad7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 889065cfad95df04a802761fcccb8359
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs deleted file mode 100644 index ee981ed7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the is kinematic value of the Rigidbody. Returns Success.")]
- public class GetIsKinematic : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The is kinematic value of the Rigidbody")]
- [RequiredField]
- public SharedBool storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.isKinematic;
-
- 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/Rigidbody/GetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta deleted file mode 100644 index 0bef7e35..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a531151d14b8a9640be8d499d9db4538
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs deleted file mode 100644 index 62d0138b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the mass of the Rigidbody. Returns Success.")]
- public class GetMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mass of the Rigidbody")]
- [RequiredField]
- public SharedFloat storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.mass;
-
- 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/Rigidbody/GetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta deleted file mode 100644 index 71b86955..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2638ca749ba5a404f84fd72811b16c81
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs deleted file mode 100644 index 9f4dc201..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the position of the Rigidbody. Returns Success.")]
- public class GetPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.position;
-
- 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/Rigidbody/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta deleted file mode 100644 index 732ae424..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 25f9090c180831b4daaa1a24894681ac
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs deleted file mode 100644 index 53d4101f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the rotation of the Rigidbody. Returns Success.")]
- public class GetRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rotation of the Rigidbody")]
- [RequiredField]
- public SharedQuaternion storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.rotation;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta deleted file mode 100644 index 539000a1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 937400bc82220b543aa9b3074f17f4d6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs deleted file mode 100644 index dc20ef51..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the use gravity value of the Rigidbody. Returns Success.")]
- public class GetUseGravity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The use gravity value of the Rigidbody")]
- [RequiredField]
- public SharedBool storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.useGravity;
-
- 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/Rigidbody/GetUseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta deleted file mode 100644 index ab211284..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1d7358afc7810ca4aa2ae8a2cd4b9e6e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs deleted file mode 100644 index de66c4ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the velocity of the Rigidbody. Returns Success.")]
- public class GetVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.velocity;
-
- 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/Rigidbody/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta deleted file mode 100644 index 62f5920f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9c18365eb6865164ebb5b0057dcc6bb4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs deleted file mode 100644 index 1144ea46..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Returns Success if the Rigidbody is kinematic, otherwise Failure.")]
- public class IsKinematic : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody.isKinematic ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta deleted file mode 100644 index ec59f524..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 30be28b36412643418c2e61640147eac
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs deleted file mode 100644 index 1252e643..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Returns Success if the Rigidbody is sleeping, otherwise Failure.")]
- public class IsSleeping : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody.IsSleeping() ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta deleted file mode 100644 index c0c0a203..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 37e8153613f519240a11c3f6583d1030
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs deleted file mode 100644 index 81ac9191..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Moves the Rigidbody to the specified position. Returns Success.")]
- public class MovePosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The new position of the Rigidbody")]
- public SharedVector3 position;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.MovePosition(position.Value);
-
- return TaskStatus.Success;
- }
-
- 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/Rigidbody/MovePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta deleted file mode 100644 index 75fc531c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 87176662744aee049b8af51b01bcb526
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs deleted file mode 100644 index 9133cb77..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Rotates the Rigidbody to the specified rotation. Returns Success.")]
- public class MoveRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The new rotation of the Rigidbody")]
- public SharedQuaternion rotation;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.MoveRotation(rotation.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- rotation = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta deleted file mode 100644 index 65a02522..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f1ba2e66d5ca98a4ba4020b4eff4da6e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs deleted file mode 100644 index c08194d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the angular drag of the Rigidbody. Returns Success.")]
- public class SetAngularDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular drag of the Rigidbody")]
- public SharedFloat angularDrag;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.angularDrag = angularDrag.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- angularDrag = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta deleted file mode 100644 index bfa75a99..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2883595af7ee1c649ae45353482beed8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs deleted file mode 100644 index 78f35260..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the angular velocity of the Rigidbody. Returns Success.")]
- public class SetAngularVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular velocity of the Rigidbody")]
- public SharedVector3 angularVelocity;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.angularVelocity = angularVelocity.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- angularVelocity = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta deleted file mode 100644 index 1c2b78f9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8652396368a6dad4eb6e1259e680595c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs deleted file mode 100644 index f57cb25a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the center of mass of the Rigidbody. Returns Success.")]
- public class SetCenterOfMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of mass of the Rigidbody")]
- public SharedVector3 centerOfMass;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.centerOfMass = centerOfMass.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- centerOfMass = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta deleted file mode 100644 index 3a229ffb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 594f2d37fbfc0d545a0377cf63543f41
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs deleted file mode 100644 index 0b174602..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the constraints of the Rigidbody. Returns Success.")]
- public class SetConstraints : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The constraints of the Rigidbody")]
- public RigidbodyConstraints constraints = RigidbodyConstraints.None;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.constraints = constraints;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- constraints = RigidbodyConstraints.None;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta deleted file mode 100644 index 8affb848..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: dd098240974b0184ca8c66cb6e450753
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs deleted file mode 100644 index e755cf6e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the drag of the Rigidbody. Returns Success.")]
- public class SetDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The drag of the Rigidbody")]
- public SharedFloat drag;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.drag = drag.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- drag = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta deleted file mode 100644 index 370e0d8b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8984a684f33e6644abbb9cfe6c9068d9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs deleted file mode 100644 index 9b6342ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the freeze rotation value of the Rigidbody. Returns Success.")]
- public class SetFreezeRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The freeze rotation value of the Rigidbody")]
- public SharedBool freezeRotation;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.freezeRotation = freezeRotation.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- freezeRotation = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta deleted file mode 100644 index 67fd3cac..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4160755a1f5174546b6ccbabff469187
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs deleted file mode 100644 index 49ead821..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the is kinematic value of the Rigidbody. Returns Success.")]
- public class SetIsKinematic : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The is kinematic value of the Rigidbody")]
- public SharedBool isKinematic;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.isKinematic = isKinematic.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- isKinematic = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta deleted file mode 100644 index 78a73857..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6d93194d82815024cadf3f4f842666d0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs deleted file mode 100644 index 48c1da8f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the mass of the Rigidbody. Returns Success.")]
- public class SetMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mass of the Rigidbody")]
- public SharedFloat mass;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.mass = mass.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- mass = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta deleted file mode 100644 index b1ab1a4e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 82f7a92bee3553d49bbb1ebabfaffc12
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs deleted file mode 100644 index 86b564a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the position of the Rigidbody. Returns Success.")]
- public class SetPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Rigidbody")]
- public SharedVector3 position;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.position = position.Value;
-
- return TaskStatus.Success;
- }
-
- 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/Rigidbody/SetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta deleted file mode 100644 index 62b9cac0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8a33b86eb94a87c449e1f3344973cc50
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs deleted file mode 100644 index ffa231a8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the rotation of the Rigidbody. Returns Success.")]
- public class SetRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rotation of the Rigidbody")]
- public SharedQuaternion rotation;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.rotation = rotation.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- rotation = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta deleted file mode 100644 index cf104f74..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c5ac2e84278f4a845ba47d1e4469e869
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs deleted file mode 100644 index a95330a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the use gravity value of the Rigidbody. Returns Success.")]
- public class SetUseGravity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The use gravity value of the Rigidbody")]
- public SharedBool isKinematic;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.useGravity = isKinematic.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- isKinematic = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta deleted file mode 100644 index 8e3be08a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 19548f438ad1c684180d41713cbdeb76
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs deleted file mode 100644 index e488ebc5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the velocity of the Rigidbody. Returns Success.")]
- public class SetVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the Rigidbody")]
- public SharedVector3 velocity;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.velocity = velocity.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- velocity = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta deleted file mode 100644 index c1756a01..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3e3fc3ca798c87644a42b1c930fff3f0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs deleted file mode 100644 index 796f7f29..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Forces the Rigidbody to sleep at least one frame. Returns Success.")]
- public class Sleep : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.Sleep();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta deleted file mode 100644 index dc6ae392..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1683ca7168c4ce74db4396c4d3cb65ce
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs deleted file mode 100644 index 1cdcb762..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Returns Success if the Rigidbody is using gravity, otherwise Failure.")]
- public class UseGravity : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody.useGravity ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta deleted file mode 100644 index 446f7f0d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a0d11b67c4ae058469e7f7b00db7103f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs deleted file mode 100644 index fcb4fe74..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Forces the Rigidbody to wake up. Returns Success.")]
- public class WakeUp : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.WakeUp();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta deleted file mode 100644 index d65620b9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d4314af88b4d86046bdac1f10f6f9a47
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D.meta deleted file mode 100644 index 9c0f800c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 842427c186c2e5941b1b02873f6480e3
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs deleted file mode 100644 index bc084e41..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Applies a force to the Rigidbody2D. Returns Success.")]
- public class AddForce : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector2 force;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.AddForce(force.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- force = Vector2.zero;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta deleted file mode 100644 index 3f52d151..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9ea79154ee01cf441a9744c877542a1f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs deleted file mode 100644 index c1a187c6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Applies a force at the specified position to the Rigidbody2D. Returns Success.")]
- public class AddForceAtPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector2 force;
- [Tooltip("The position of the force")]
- public SharedVector2 position;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.AddForceAtPosition(force.Value, position.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- force = Vector2.zero;
- position = Vector2.zero;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta deleted file mode 100644 index e1edb20c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddForceAtPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: dd82f0f77306bad46bae7944a5c66664
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs deleted file mode 100644 index 9f065e34..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Applies a torque to the Rigidbody2D. Returns Success.")]
- public class AddTorque : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of torque to apply")]
- public SharedFloat torque;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.AddTorque(torque.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- torque = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta deleted file mode 100644 index d79e4975..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/AddTorque.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: cc561d806d4518044becff628e148424
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs deleted file mode 100644 index 17080d53..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the angular drag of the Rigidbody2D. Returns Success.")]
- public class GetAngularDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular drag of the Rigidbody2D")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.angularDrag;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta deleted file mode 100644 index 4aefa782..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 10833270578d69041b561c5126bb31f2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs deleted file mode 100644 index 17be28db..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the angular velocity of the Rigidbody2D. Returns Success.")]
- public class GetAngularVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular velocity of the Rigidbody2D")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.angularVelocity;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta deleted file mode 100644 index 15cae45b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 68ac62a9384c11245a850220f1bc72b8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs deleted file mode 100644 index b01bf9a2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the drag of the Rigidbody2D. Returns Success.")]
- public class GetDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The drag of the Rigidbody2D")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.drag;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta deleted file mode 100644 index 872fb557..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6e39198e5d65d514185f2816cced7c7b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs deleted file mode 100644 index 9b1ef3a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the gravity scale of the Rigidbody2D. Returns Success.")]
- public class GetGravityScale : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The gravity scale of the Rigidbody2D")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.gravityScale;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta deleted file mode 100644 index ee205b51..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetGravtyScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e2d17fb9baea6554082f2edc46483e8c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs deleted file mode 100644 index 94221a04..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the is kinematic value of the Rigidbody2D. Returns Success.")]
- public class GetIsKinematic : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The is kinematic value of the Rigidbody2D")]
- [RequiredField]
- public SharedBool storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.isKinematic;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = false;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta deleted file mode 100644 index 10f9161a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 66c6175d42bd49e48be458378e0a7875
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs deleted file mode 100644 index 245f2b9e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the mass of the Rigidbody2D. Returns Success.")]
- public class GetMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mass of the Rigidbody2D")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.mass;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta deleted file mode 100644 index d9588541..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 72d52ef5efe5e974994c91279536555e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs deleted file mode 100644 index b22333ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the position of the Rigidbody2D. Returns Success.")]
- public class GetPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the Rigidbody2D")]
- [RequiredField]
- public SharedVector2 storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.position;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta deleted file mode 100644 index 00083e0e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 98dff23734f3a834cbf5ccf87c9904f7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs deleted file mode 100644 index 061646e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the rotation of the Rigidbody2D. Returns Success.")]
- public class GetRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rotation of the Rigidbody2D")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.rotation;
-
- 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/Rigidbody2D/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta deleted file mode 100644 index 6be4219c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a7d82ab7ef780f34cb5df06366b0bdbf
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs deleted file mode 100644 index bbba8a51..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Stores the velocity of the Rigidbody2D. Returns Success.")]
- public class GetVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the Rigidbody2D")]
- [RequiredField]
- public SharedVector2 storeValue;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody2D.velocity;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector2.zero;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta deleted file mode 100644 index d92cc9fd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/GetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 13009f7b6ee1bc04884442484a065cc3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs deleted file mode 100644 index 9bccbaef..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Returns Success if the Rigidbody2D is kinematic, otherwise Failure.")]
- public class IsKinematic : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody2D.isKinematic ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta deleted file mode 100644 index edf168f7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 47d2e6e60a2251c41a2c548dc9a8c922
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs deleted file mode 100644 index d010d1cc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Returns Success if the Rigidbody2D is sleeping, otherwise Failure.")]
- public class IsSleeping : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody2D.IsSleeping() ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta deleted file mode 100644 index 3b38a447..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/IsSleeping.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 52859810158277a4a917e70a834a82a5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs deleted file mode 100644 index 5ce7edbc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Moves the Rigidbody2D to the specified position. Returns Success.")]
- public class MovePosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The new position of the Rigidbody")]
- public SharedVector2 position;
-
- // cache the rigidbody component
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.MovePosition(position.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- position = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta deleted file mode 100644 index 79762af7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MovePosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3e72fab171287194ea2d8eb2aa239cd4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs deleted file mode 100644 index e0b221a0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Rotates the Rigidbody2D to the specified rotation. Returns Success.")]
- public class MoveRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The new rotation of the Rigidbody")]
- public SharedFloat rotation;
-
- // cache the rigidbody component
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.MoveRotation(rotation.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- rotation = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta deleted file mode 100644 index 09bb16a9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/MoveRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 38b0095c420511f4b9ed263b1b5c6054
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs deleted file mode 100644 index 3bb17e07..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Sets the angular drag of the Rigidbody2D. Returns Success.")]
- public class SetAngularDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular drag of the Rigidbody2D")]
- public SharedFloat angularDrag;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.angularDrag = angularDrag.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- angularDrag = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta deleted file mode 100644 index 1ec92fe3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1717a737318274e4caa244f86c908851
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs deleted file mode 100644 index 9fc45f3d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Sets the angular velocity of the Rigidbody2D. Returns Success.")]
- public class SetAngularVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular velocity of the Rigidbody2D")]
- public SharedFloat angularVelocity;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.angularVelocity = angularVelocity.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- angularVelocity = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta deleted file mode 100644 index a559685e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c73dfb332d90cbe4280c21fafa59e2fa
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs deleted file mode 100644 index 1530cc07..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Sets the drag of the Rigidbody2D. Returns Success.")]
- public class SetDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The drag of the Rigidbody2D")]
- public SharedFloat drag;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.drag = drag.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- drag = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta deleted file mode 100644 index 96d06ce2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3148efd94c23d634a9f02cc9c808de80
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs deleted file mode 100644 index a6ce28a4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Sets the gravity scale of the Rigidbody2D. Returns Success.")]
- public class SetGravityScale : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The gravity scale of the Rigidbody2D")]
- public SharedFloat gravityScale;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.gravityScale = gravityScale.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- gravityScale = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta deleted file mode 100644 index 516e6ac5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetGravityScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ac896135858701649bcaffc7ef00637f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs deleted file mode 100644 index c8e2563e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Sets the is kinematic value of the Rigidbody2D. Returns Success.")]
- public class SetIsKinematic : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The is kinematic value of the Rigidbody2D")]
- public SharedBool isKinematic;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.isKinematic = isKinematic.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- isKinematic = false;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta deleted file mode 100644 index ff7f5f2c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b7c96d64d821e304a8c67c031565d902
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs deleted file mode 100644 index c218e087..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Sets the mass of the Rigidbody2D. Returns Success.")]
- public class SetMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mass of the Rigidbody2D")]
- public SharedFloat mass;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.mass = mass.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- mass = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta deleted file mode 100644 index 042c36e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: facbfd14ece02214889d587f06215105
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs deleted file mode 100644 index 7f1f782a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Sets the velocity of the Rigidbody2D. Returns Success.")]
- public class SetVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the Rigidbody2D")]
- public SharedVector2 velocity;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.velocity = velocity.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- velocity = Vector2.zero;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta deleted file mode 100644 index a78bc24c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/SetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5830960da4f9a3148ba5d8cd87228748
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs deleted file mode 100644 index 9357826c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Forces the Rigidbody2D to sleep at least one frame. Returns Success.")]
- public class Sleep : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.Sleep();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta deleted file mode 100644 index 9e50b4e1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/Sleep.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7e24fd00ca72fda48a132dc9bfa71070
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs deleted file mode 100644 index 66a3318d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody2D
-{
- [TaskCategory("Basic/Rigidbody2D")]
- [TaskDescription("Forces the Rigidbody2D to wake up. Returns Success.")]
- public class WakeUp : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- private Rigidbody2D rigidbody2D;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody2D = currentGameObject.GetComponent<Rigidbody2D>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody2D == null) {
- Debug.LogWarning("Rigidbody2D is null");
- return TaskStatus.Failure;
- }
-
- rigidbody2D.WakeUp();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta deleted file mode 100644 index ce6821bb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody2D/WakeUp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 954f1f9c196c39345b2fd389516ad613
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables.meta deleted file mode 100644 index d9527db4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 1ca8022ad636ccc4ab940c05d58dfd6b
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs deleted file mode 100644 index 73fd634c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedBool : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedBool variable;
- [Tooltip("The variable to compare to")]
- public SharedBool compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = false;
- compareTo = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta deleted file mode 100644 index 1e856966..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedBool.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ba0766a97c2e5c94fbc49d8cb1dea8e3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs deleted file mode 100644 index 58e23442..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedColor : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedColor variable;
- [Tooltip("The variable to compare to")]
- public SharedColor compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = Color.black;
- compareTo = Color.black;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta deleted file mode 100644 index 2a8f288a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c9e83747d98bd064b9a5ad62b36d7657
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs deleted file mode 100644 index 967ad9d6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedFloat : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedFloat variable;
- [Tooltip("The variable to compare to")]
- public SharedFloat compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = 0;
- compareTo = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta deleted file mode 100644 index 42430338..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedFloat.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6925a99e92b6d804db1f4b607e7501d3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs deleted file mode 100644 index fda37a7e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedGameObject : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedGameObject variable;
- [Tooltip("The variable to compare to")]
- public SharedGameObject compareTo;
-
- public override TaskStatus OnUpdate()
- {
- if (variable.Value == null && compareTo.Value != null)
- return TaskStatus.Failure;
- if (variable.Value == null && compareTo.Value == null)
- return TaskStatus.Success;
-
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = null;
- compareTo = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta deleted file mode 100644 index b0e3b516..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObject.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: daa5c3b8a325bcd4bb3da10a6715f6d0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs deleted file mode 100644 index 97af31c9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedGameObjectList : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedGameObjectList variable;
- [Tooltip("The variable to compare to")]
- public SharedGameObjectList compareTo;
-
- public override TaskStatus OnUpdate()
- {
- if (variable.Value == null && compareTo.Value != null)
- return TaskStatus.Failure;
- if (variable.Value == null && compareTo.Value == null)
- return TaskStatus.Success;
- if (variable.Value.Count != compareTo.Value.Count)
- return TaskStatus.Failure;
-
- for (int i = 0; i < variable.Value.Count; ++i) {
- if (variable.Value[i] != compareTo.Value[i]) {
- return TaskStatus.Failure;
- }
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- variable = null;
- compareTo = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta deleted file mode 100644 index 6db560f6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedGameObjectList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a2b81932d36a0be4fba0868f7ed3e53c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs deleted file mode 100644 index 7183e8e6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedInt : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedInt variable;
- [Tooltip("The variable to compare to")]
- public SharedInt compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = 0;
- compareTo = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta deleted file mode 100644 index 0ea01290..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedInt.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 40307a4117777b4479a1402fd67811ff
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs deleted file mode 100644 index b53daf88..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedObject : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedObject variable;
- [Tooltip("The variable to compare to")]
- public SharedObject compareTo;
-
- public override TaskStatus OnUpdate()
- {
- if (variable.Value == null && compareTo.Value != null)
- return TaskStatus.Failure;
- if (variable.Value == null && compareTo.Value == null)
- return TaskStatus.Success;
-
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = null;
- compareTo = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta deleted file mode 100644 index 08e55c50..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObject.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 66a9105498519ae4082d9ac7adcf5da4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs deleted file mode 100644 index e15644c9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedObjectList : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedObjectList variable;
- [Tooltip("The variable to compare to")]
- public SharedObjectList compareTo;
-
- public override TaskStatus OnUpdate()
- {
- if (variable.Value == null && compareTo.Value != null)
- return TaskStatus.Failure;
- if (variable.Value == null && compareTo.Value == null)
- return TaskStatus.Success;
- if (variable.Value.Count != compareTo.Value.Count)
- return TaskStatus.Failure;
-
- for (int i = 0; i < variable.Value.Count; ++i) {
- if (variable.Value[i] != compareTo.Value[i]) {
- return TaskStatus.Failure;
- }
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- variable = null;
- compareTo = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta deleted file mode 100644 index 0183b3f4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedObjectList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ac4cab9acc737904885d379388e83950
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs deleted file mode 100644 index 9a17ec10..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedQuaternion : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedQuaternion variable;
- [Tooltip("The variable to compare to")]
- public SharedQuaternion compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = Quaternion.identity;
- compareTo = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta deleted file mode 100644 index a5b7ad50..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedQuaternion.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 101b2ac215bf58149ab91be3b55d5145
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs deleted file mode 100644 index ccbe413b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedRect : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedRect variable;
- [Tooltip("The variable to compare to")]
- public SharedRect compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = new Rect();
- compareTo = new Rect();
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta deleted file mode 100644 index 975e83ed..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedRect.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d73d97622bbe61d4c91f9b4cacb3e0c2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs deleted file mode 100644 index f6306a0f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedString : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedString variable;
- [Tooltip("The variable to compare to")]
- public SharedString compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = "";
- compareTo = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta deleted file mode 100644 index 19000027..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedString.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8b1a3248c84732345914404e47a55fcc
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs deleted file mode 100644 index 34c35cf2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedTransform : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedTransform variable;
- [Tooltip("The variable to compare to")]
- public SharedTransform compareTo;
-
- public override TaskStatus OnUpdate()
- {
- if (variable.Value == null && compareTo.Value != null)
- return TaskStatus.Failure;
- if (variable.Value == null && compareTo.Value == null)
- return TaskStatus.Success;
-
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = null;
- compareTo = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta deleted file mode 100644 index ecaf052e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransform.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a21f70566ff2afc4e95454d3d658c1fa
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs deleted file mode 100644 index 9091d0a1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedTransformList : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedTransformList variable;
- [Tooltip("The variable to compare to")]
- public SharedTransformList compareTo;
-
- public override TaskStatus OnUpdate()
- {
- if (variable.Value == null && compareTo.Value != null)
- return TaskStatus.Failure;
- if (variable.Value == null && compareTo.Value == null)
- return TaskStatus.Success;
- if (variable.Value.Count != compareTo.Value.Count)
- return TaskStatus.Failure;
-
- for (int i = 0; i < variable.Value.Count; ++i) {
- if (variable.Value[i] != compareTo.Value[i]) {
- return TaskStatus.Failure;
- }
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- variable = null;
- compareTo = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta deleted file mode 100644 index fb7a667a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedTransformList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8ea22243f4fc22946a0033142f3a2380
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs deleted file mode 100644 index c419b558..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedVector2 : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedVector2 variable;
- [Tooltip("The variable to compare to")]
- public SharedVector2 compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = Vector2.zero;
- compareTo = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta deleted file mode 100644 index 1952f213..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector2.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ce90fa6ac7a64b044936fa647e5f0e80
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs deleted file mode 100644 index 03c89378..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedVector3 : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedVector3 variable;
- [Tooltip("The variable to compare to")]
- public SharedVector3 compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = Vector3.zero;
- compareTo = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta deleted file mode 100644 index b9ea65fc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector3.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 617192db87511d844940d400c960d13d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs deleted file mode 100644 index e502fe99..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Returns success if the variable value is equal to the compareTo value.")]
- public class CompareSharedVector4 : Conditional
- {
- [Tooltip("The first variable to compare")]
- public SharedVector4 variable;
- [Tooltip("The variable to compare to")]
- public SharedVector4 compareTo;
-
- public override TaskStatus OnUpdate()
- {
- return variable.Value.Equals(compareTo.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- variable = Vector4.zero;
- compareTo = Vector4.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta deleted file mode 100644 index 119336b2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/CompareSharedVector4.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9738be23ad39d2c4ba8adc018b545ece
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs deleted file mode 100644 index 1043c0fa..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedBool variable to the specified object. Returns Success.")]
- public class SetSharedBool : Action
- {
- [Tooltip("The value to set the SharedBool to")]
- public SharedBool targetValue;
- [RequiredField]
- [Tooltip("The SharedBool to set")]
- public SharedBool targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = false;
- targetVariable = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta deleted file mode 100644 index 251b180c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedBool.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 54f63c79d78692a4e84e502f7cd705a6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs deleted file mode 100644 index 120bdb1a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedColor variable to the specified object. Returns Success.")]
- public class SetSharedColor : Action
- {
- [Tooltip("The value to set the SharedColor to")]
- public SharedColor targetValue;
- [RequiredField]
- [Tooltip("The SharedColor to set")]
- public SharedColor targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = Color.black;
- targetVariable = Color.black;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta deleted file mode 100644 index 7132dddb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedColor.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 48c49264be0e7244ba46b8c970027a20
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs deleted file mode 100644 index d065be9f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedFloat variable to the specified object. Returns Success.")]
- public class SetSharedFloat : Action
- {
- [Tooltip("The value to set the SharedFloat to")]
- public SharedFloat targetValue;
- [RequiredField]
- [Tooltip("The SharedFloat to set")]
- public SharedFloat targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = 0;
- targetVariable = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta deleted file mode 100644 index 5f1588ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedFloat.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4d5b15c88fb154446b9b1ad90cb3987f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs deleted file mode 100644 index ac7f7540..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs +++ /dev/null @@ -1,29 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedGameObject variable to the specified object. Returns Success.")]
- public class SetSharedGameObject : Action
- {
- [Tooltip("The value to set the SharedGameObject to. If null the variable will be set to the current GameObject")]
- public SharedGameObject targetValue;
- [RequiredField]
- [Tooltip("The SharedGameObject to set")]
- public SharedGameObject targetVariable;
- [Tooltip("Can the target value be null?")]
- public SharedBool valueCanBeNull;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = ((targetValue.Value != null || valueCanBeNull.Value) ? targetValue.Value : gameObject);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- valueCanBeNull = false;
- targetValue = null;
- targetVariable = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta deleted file mode 100644 index 859f7776..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObject.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: bf4af224a0ebd5946bc4f01f18d0627b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs deleted file mode 100644 index fb3a5efe..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedGameObjectList variable to the specified object. Returns Success.")]
- public class SetSharedGameObjectList : Action
- {
- [Tooltip("The value to set the SharedGameObjectList to.")]
- public SharedGameObjectList targetValue;
- [RequiredField]
- [Tooltip("The SharedGameObjectList to set")]
- public SharedGameObjectList targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = null;
- targetVariable = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta deleted file mode 100644 index f5b14ddc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedGameObjectList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b02b163c1dc1b894ca53f80378e39b26
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs deleted file mode 100644 index ae27d8b8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedInt variable to the specified object. Returns Success.")]
- public class SetSharedInt : Action
- {
- [Tooltip("The value to set the SharedInt to")]
- public SharedInt targetValue;
- [RequiredField]
- [Tooltip("The SharedInt to set")]
- public SharedInt targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = 0;
- targetVariable = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta deleted file mode 100644 index 279e8dba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedInt.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 742d2b1426f291e45b03bcf845c53a67
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs deleted file mode 100644 index 5e0a39a8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedObject variable to the specified object. Returns Success.")]
- public class SetSharedObject : Action
- {
- [Tooltip("The value to set the SharedObject to")]
- public SharedObject targetValue;
- [RequiredField]
- [Tooltip("The SharedTransform to set")]
- public SharedObject targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = null;
- targetVariable = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta deleted file mode 100644 index f779b22c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObject.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f80da138a03cfdd4e98af96ed5f6681b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs deleted file mode 100644 index 463cd0bb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedObjectList variable to the specified object. Returns Success.")]
- public class SetSharedObjectList : Action
- {
- [Tooltip("The value to set the SharedObjectList to.")]
- public SharedObjectList targetValue;
- [RequiredField]
- [Tooltip("The SharedObjectList to set")]
- public SharedObjectList targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = null;
- targetVariable = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta deleted file mode 100644 index 0a74168d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedObjectList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b5c211b64a2cf364e99b99dab3ce3c87
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs deleted file mode 100644 index 7f4e95da..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedQuaternion variable to the specified object. Returns Success.")]
- public class SetSharedQuaternion : Action
- {
- [Tooltip("The value to set the SharedQuaternion to")]
- public SharedQuaternion targetValue;
- [RequiredField]
- [Tooltip("The SharedQuaternion to set")]
- public SharedQuaternion targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = Quaternion.identity;
- targetVariable = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta deleted file mode 100644 index c5975461..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedQuaternion.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 42f84705fc5571e4088098d1239b5f46
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs deleted file mode 100644 index bcef0665..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedRect variable to the specified object. Returns Success.")]
- public class SetSharedRect : Action
- {
- [Tooltip("The value to set the SharedRect to")]
- public SharedRect targetValue;
- [RequiredField]
- [Tooltip("The SharedRect to set")]
- public SharedRect targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = new Rect();
- targetVariable = new Rect();
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta deleted file mode 100644 index 97568cdc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedRect.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7313c7640a9d92b4294a7702b3c5339b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs deleted file mode 100644 index d95ce9d8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedString variable to the specified object. Returns Success.")]
- public class SetSharedString : Action
- {
- [Tooltip("The value to set the SharedString to")]
- public SharedString targetValue;
- [RequiredField]
- [Tooltip("The SharedString to set")]
- public SharedString targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = "";
- targetVariable = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta deleted file mode 100644 index c36a773e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedString.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 92060068b2f07c54f930e1b8a8976c11
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs deleted file mode 100644 index 43f66caf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedTransform variable to the specified object. Returns Success.")]
- public class SetSharedTransform : Action
- {
- [Tooltip("The value to set the SharedTransform to. If null the variable will be set to the current Transform")]
- public SharedTransform targetValue;
- [RequiredField]
- [Tooltip("The SharedTransform to set")]
- public SharedTransform targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = (targetValue.Value != null ? targetValue.Value : transform);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = null;
- targetVariable = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta deleted file mode 100644 index dee1b887..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransform.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 78e7da45e8b6c2e4cbbf4fdf474070e5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs deleted file mode 100644 index f7edfd0d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedTransformList variable to the specified object. Returns Success.")]
- public class SetSharedTransformList : Action
- {
- [Tooltip("The value to set the SharedTransformList to.")]
- public SharedTransformList targetValue;
- [RequiredField]
- [Tooltip("The SharedTransformList to set")]
- public SharedTransformList targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = null;
- targetVariable = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta deleted file mode 100644 index 11b0bb2a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedTransformList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fae9cd59e50283949a2cc8ec460ffafe
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs deleted file mode 100644 index 6c086a23..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedVector2 variable to the specified object. Returns Success.")]
- public class SetSharedVector2 : Action
- {
- [Tooltip("The value to set the SharedVector2 to")]
- public SharedVector2 targetValue;
- [RequiredField]
- [Tooltip("The SharedVector2 to set")]
- public SharedVector2 targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = Vector2.zero;
- targetVariable = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta deleted file mode 100644 index b9b672f9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector2.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c70cf248c723950409d74c11d0781c06
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs deleted file mode 100644 index ef2ae959..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedVector3 variable to the specified object. Returns Success.")]
- public class SetSharedVector3 : Action
- {
- [Tooltip("The value to set the SharedVector3 to")]
- public SharedVector3 targetValue;
- [RequiredField]
- [Tooltip("The SharedVector3 to set")]
- public SharedVector3 targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = Vector3.zero;
- targetVariable = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta deleted file mode 100644 index 6b80394d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector3.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 281820e8b30038d48b4fa8f25728e6c3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs deleted file mode 100644 index a9a97753..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedVector4 variable to the specified object. Returns Success.")]
- public class SetSharedVector4 : Action
- {
- [Tooltip("The value to set the SharedVector4 to")]
- public SharedVector4 targetValue;
- [RequiredField]
- [Tooltip("The SharedVector4 to set")]
- public SharedVector4 targetVariable;
-
- public override TaskStatus OnUpdate()
- {
- targetVariable.Value = targetValue.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetValue = Vector4.zero;
- targetVariable = Vector4.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta deleted file mode 100644 index 501d083c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SetSharedVector4.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5ca30d99da0685a4fa32d79624a5c0a0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs deleted file mode 100644 index e24d8835..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Gets the Transform from the GameObject. Returns Success.")]
- public class SharedGameObjectToTransform : Action
- {
- [Tooltip("The GameObject to get the Transform of")]
- public SharedGameObject sharedGameObject;
- [RequiredField]
- [Tooltip("The Transform to set")]
- public SharedTransform sharedTransform;
-
- public override TaskStatus OnUpdate()
- {
- if (sharedGameObject.Value == null) {
- return TaskStatus.Failure;
- }
-
- sharedTransform.Value = sharedGameObject.Value.GetComponent<Transform>();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- sharedGameObject = null;
- sharedTransform = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta deleted file mode 100644 index 58b9caa8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectToTransform.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c08dcd1e915bef6448649ffe4d3bef3d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs deleted file mode 100644 index 5849ac45..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-using System.Collections.Generic;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedGameObjectList values from the GameObjects. Returns Success.")]
- public class SharedGameObjectsToGameObjectList : Action
- {
- [Tooltip("The GameObjects value")]
- public SharedGameObject[] gameObjects;
- [RequiredField]
- [Tooltip("The SharedTransformList to set")]
- public SharedGameObjectList storedGameObjectList;
-
- public override void OnAwake()
- {
- storedGameObjectList.Value = new List<GameObject>();
- }
-
- public override TaskStatus OnUpdate()
- {
- if (gameObjects == null || gameObjects.Length == 0) {
- return TaskStatus.Failure;
- }
-
- storedGameObjectList.Value.Clear();
- for (int i = 0; i < gameObjects.Length; ++i) {
- storedGameObjectList.Value.Add(gameObjects[i].Value);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- gameObjects = null;
- storedGameObjectList = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta deleted file mode 100644 index 4d5c325a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4460871f1a9671343896ef9e56d9ceab
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs deleted file mode 100644 index bc8d10ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs +++ /dev/null @@ -1,32 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Gets the GameObject from the Transform component. Returns Success.")]
- public class SharedTransformToGameObject : Action
- {
- [Tooltip("The Transform component")]
- public SharedTransform sharedTransform;
- [RequiredField]
- [Tooltip("The GameObject to set")]
- public SharedGameObject sharedGameObject;
-
- public override TaskStatus OnUpdate()
- {
- if (sharedTransform.Value == null) {
- return TaskStatus.Failure;
- }
-
- sharedGameObject.Value = sharedTransform.Value.gameObject;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- sharedTransform = null;
- sharedGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta deleted file mode 100644 index a5bb06c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformToGameObject.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f2fd208ea1a8e1642a32148186f9e077
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs deleted file mode 100644 index 06ed2690..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine;
-using System.Collections.Generic;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables
-{
- [TaskCategory("Basic/SharedVariable")]
- [TaskDescription("Sets the SharedTransformList values from the Transforms. Returns Success.")]
- public class SharedTransformsToTransformList : Action
- {
- [Tooltip("The Transforms value")]
- public SharedTransform[] transforms;
- [RequiredField]
- [Tooltip("The SharedTransformList to set")]
- public SharedTransformList storedTransformList;
-
- public override void OnAwake()
- {
- storedTransformList.Value = new List<Transform>();
- }
-
- public override TaskStatus OnUpdate()
- {
- if (transforms == null || transforms.Length == 0) {
- return TaskStatus.Failure;
- }
-
- storedTransformList.Value.Clear();
- for (int i = 0; i < transforms.Length; ++i) {
- storedTransformList.Value.Add(transforms[i].Value);
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- transforms = null;
- storedTransformList = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta deleted file mode 100644 index 5aa0a81e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedTransformsToTransformList.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3533c6733499e9446b1eae98c8fcaeea
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider.meta deleted file mode 100644 index 4d3517e7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 79bf48a44f2371244a34ff82aaeaaded
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs deleted file mode 100644 index 84793c5b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider
-{
- [TaskCategory("Basic/SphereCollider")]
- [TaskDescription("Stores the center of the SphereCollider. Returns Success.")]
- public class GetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the SphereCollider")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private SphereCollider sphereCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- sphereCollider = currentGameObject.GetComponent<SphereCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (sphereCollider == null) {
- Debug.LogWarning("SphereCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = sphereCollider.center;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeValue = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs.meta deleted file mode 100644 index 19d5324a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d95a2896b550c5b4382b7ed35860f504
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs deleted file mode 100644 index 81531b9e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider
-{
- [TaskCategory("Basic/SphereCollider")]
- [TaskDescription("Stores the radius of the SphereCollider. Returns Success.")]
- public class GetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the SphereCollider")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private SphereCollider sphereCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- sphereCollider = currentGameObject.GetComponent<SphereCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (sphereCollider == null) {
- Debug.LogWarning("SphereCollider is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = sphereCollider.radius;
-
- 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/SphereCollider/GetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs.meta deleted file mode 100644 index 483f418a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/GetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2ff93bf538eee1444b3c51aadfc9bb7f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs deleted file mode 100644 index 068800e1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider
-{
- [TaskCategory("Basic/SphereCollider")]
- [TaskDescription("Sets the center of the SphereCollider. Returns Success.")]
- public class SetCenter : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of the SphereCollider")]
- public SharedVector3 center;
-
- private SphereCollider sphereCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- sphereCollider = currentGameObject.GetComponent<SphereCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (sphereCollider == null) {
- Debug.LogWarning("SphereCollider is null");
- return TaskStatus.Failure;
- }
-
- sphereCollider.center = center.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- center = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs.meta deleted file mode 100644 index a9af8a3a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetCenter.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: dffebfe905e60814ab75e0d7c57432ec
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs deleted file mode 100644 index 483bae53..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnitySphereCollider
-{
- [TaskCategory("Basic/SphereCollider")]
- [TaskDescription("Sets the radius of the SphereCollider. Returns Success.")]
- public class SetRadius : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The radius of the SphereCollider")]
- public SharedFloat radius;
-
- private SphereCollider sphereCollider;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- sphereCollider = currentGameObject.GetComponent<SphereCollider>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (sphereCollider == null) {
- Debug.LogWarning("SphereCollider is null");
- return TaskStatus.Failure;
- }
-
- sphereCollider.radius = radius.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- radius = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs.meta deleted file mode 100644 index c1855dd0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SphereCollider/SetRadius.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5f45a94e6b603f2498481f61218b1769
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String.meta deleted file mode 100644 index c2e70631..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: f1fb420b7a56bfa4ebafed6237009045
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs deleted file mode 100644 index f681b02a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Creates a string from multiple other strings.")]
- public class BuildString : Action
- {
- [Tooltip("The array of strings")]
- public SharedString[] source;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedString storeResult;
-
- public override TaskStatus OnUpdate()
- {
- for (int i = 0; i < source.Length; ++i) {
- storeResult.Value += source[i];
- }
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- source = null;
- storeResult = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs.meta deleted file mode 100644 index 771073df..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/BuildString.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9373af75c434e1a4784c2a165ad3ce3b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs deleted file mode 100644 index b4958d4f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Compares the first string to the second string. Returns an int which indicates whether the first string precedes, matches, or follows the second string.")]
- public class CompareTo : Action
- {
- [Tooltip("The string to compare")]
- public SharedString firstString;
- [Tooltip("The string to compare to")]
- public SharedString secondString;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedInt storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = firstString.Value.CompareTo(secondString.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- firstString = "";
- secondString = "";
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs.meta deleted file mode 100644 index 5c5500d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/CompareTo.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c752378530d87cb4c98ba15e55936abf
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs deleted file mode 100644 index 96e57f85..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-using System;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Stores a string with the specified format.")]
- public class Format : Action
- {
- [Tooltip("The format of the string")]
- public SharedString format;
- [Tooltip("Any variables to appear in the string")]
- public SharedGenericVariable[] variables;
- [Tooltip("The result of the format")]
- [RequiredField]
- public SharedString storeResult;
-
- private object[] variableValues;
-
- public override void OnAwake()
- {
- variableValues = new object[variables.Length];
- }
-
- public override TaskStatus OnUpdate()
- {
- for (int i = 0; i < variableValues.Length; ++i) {
- variableValues[i] = variables[i].Value.value.GetValue();
- }
-
- try {
- storeResult.Value = string.Format(format.Value, variableValues);
- } catch (Exception e) {
- Debug.LogError(e.Message);
- return TaskStatus.Failure;
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- format = "";
- variables = null;
- storeResult = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs.meta deleted file mode 100644 index 4ddacf96..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Format.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d96c5da37483da346b96ef02fde824cb
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs deleted file mode 100644 index c2de2405..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Stores the length of the string")]
- public class GetLength : Action
- {
- [Tooltip("The target string")]
- public SharedString targetString;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedInt storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = targetString.Value.Length;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetString = "";
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs.meta deleted file mode 100644 index 61249d21..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetLength.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5ab3e7e038a50c14f9fa0b019399f3be
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs deleted file mode 100644 index 9d64210d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs +++ /dev/null @@ -1,28 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Randomly selects a string from the array of strings.")]
- public class GetRandomString : Action
- {
- [Tooltip("The array of strings")]
- public SharedString[] source;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedString storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = source[Random.Range(0, source.Length)].Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- source = null;
- storeResult = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs.meta deleted file mode 100644 index b2ddfee1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetRandomString.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 355abdec2d73d2545b16d5e0d5f4c589
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs deleted file mode 100644 index 6ede171f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Stores a substring of the target string")]
- public class GetSubstring : Action
- {
- [Tooltip("The target string")]
- public SharedString targetString;
- [Tooltip("The start substring index")]
- public SharedInt startIndex = 0;
- [Tooltip("The length of the substring. Don't use if -1")]
- public SharedInt length = -1;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedString storeResult;
-
- public override TaskStatus OnUpdate()
- {
- if (length.Value != -1) {
- storeResult.Value = targetString.Value.Substring(startIndex.Value, length.Value);
- } else {
- storeResult.Value = targetString.Value.Substring(startIndex.Value);
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetString = "";
- startIndex = 0;
- length = -1;
- storeResult = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs.meta deleted file mode 100644 index 0849def5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/GetSubstring.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6ce20430f88c32b418f29b42531eca4a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs deleted file mode 100644 index 21593120..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Returns success if the string is null or empty")]
- public class IsNullOrEmpty : Conditional
- {
- [Tooltip("The target string")]
- public SharedString targetString;
-
- public override TaskStatus OnUpdate()
- {
- return string.IsNullOrEmpty(targetString.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetString = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs.meta deleted file mode 100644 index 9cb87727..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/IsNullOrEmpty.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f6f4d4c690c09bb48a388f36f4e30245
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs deleted file mode 100644 index 869df7a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Replaces a string with the new string")]
- public class Replace : Action
- {
- [Tooltip("The target string")]
- public SharedString targetString;
- [Tooltip("The old replace")]
- public SharedString oldString;
- [Tooltip("The new string")]
- public SharedString newString;
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedString storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = targetString.Value.Replace(oldString.Value, newString.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetString = "";
- oldString = "";
- newString = "";
- storeResult = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs.meta deleted file mode 100644 index 35f25181..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/Replace.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 30fc7adfdddc39245a433ea477c01adf
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs deleted file mode 100644 index 050f3a48..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs +++ /dev/null @@ -1,26 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityString
-{
- [TaskCategory("Basic/String")]
- [TaskDescription("Sets the variable string to the value string.")]
- public class SetString : Action
- {
- [Tooltip("The target string")]
- [RequiredField]
- public SharedString variable;
- [Tooltip("The value string")]
- public SharedString value;
-
- public override TaskStatus OnUpdate()
- {
- variable.Value = value.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- variable = "";
- value = "";
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs.meta deleted file mode 100644 index 5c2c6bc4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/String/SetString.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: da59105cbc94b5d4da3c805897f4a099
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time.meta deleted file mode 100644 index bb8379ab..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: d8d2d4d347504b146a2c930a2b806d71
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs deleted file mode 100644 index 75b87840..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime
-{
- [TaskCategory("Basic/Time")]
- [TaskDescription("Returns the time in seconds it took to complete the last frame.")]
- public class GetDeltaTime : Action
- {
- [Tooltip("The variable to store the result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Time.deltaTime;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta deleted file mode 100644 index a895d9d5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetDeltaTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d9d47b1b40fc1214298a3f6bfdc37e87
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs deleted file mode 100644 index eb54ab7f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime
-{
- [TaskCategory("Basic/Time")]
- [TaskDescription("Returns the real time in seconds since the game started.")]
- public class GetRealtimeSinceStartup : Action
- {
- [Tooltip("The variable to store the result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Time.realtimeSinceStartup;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs.meta deleted file mode 100644 index 9c3e68ec..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetRealtimeSinceStartup.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c265b103d220b0e4fa45138fcd605f62
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs deleted file mode 100644 index f0585de6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime
-{
- [TaskCategory("Basic/Time")]
- [TaskDescription("Returns the time in second since the start of the game.")]
- public class GetTime : Action
- {
- [Tooltip("The variable to store the result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Time.time;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs.meta deleted file mode 100644 index fe77d1cd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTime.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5afd2ca3dda059243bf7a9156438475e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs deleted file mode 100644 index 7e5cf4f5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime
-{
- [TaskCategory("Basic/Time")]
- [TaskDescription("Returns the scale at which time is passing.")]
- public class GetTimeScale : Action
- {
- [Tooltip("The variable to store the result")]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Time.timeScale;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs.meta deleted file mode 100644 index 7835d60c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/GetTimeScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 79be8ba43b4c1db468d2476318e7e71a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs deleted file mode 100644 index e02937e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs +++ /dev/null @@ -1,23 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTime
-{
- [TaskCategory("Basic/Time")]
- [TaskDescription("Sets the scale at which time is passing.")]
- public class SetTimeScale : Action
- {
- [Tooltip("The timescale")]
- public SharedFloat timeScale;
-
- public override TaskStatus OnUpdate()
- {
- Time.timeScale = timeScale.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- timeScale.Value = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs.meta deleted file mode 100644 index 9987e403..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Time/SetTimeScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6283d9f4bb690c64b9d986b6ff1271f0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform.meta deleted file mode 100644 index 022d6cd3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: d2f1ebdae5c7ffb4d8c7a9daa37b5130
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs deleted file mode 100644 index 8f45f378..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Finds a transform by name. Returns Success.")]
- public class Find : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The transform name to find")]
- public SharedString transformName;
- [Tooltip("The object found by name")]
- [RequiredField]
- public SharedTransform storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.Find(transformName.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- transformName = null;
- storeValue = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs.meta deleted file mode 100644 index b0220ca3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Find.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 387fd22087393ab4e91f0ad4fce4e77f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs deleted file mode 100644 index a6c31655..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Finds a child transform by name. Returns Success.")]
- public class FindChild : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The transform name to find")]
- public SharedString transformName;
- [Tooltip("The object found by name")]
- [RequiredField]
- public SharedTransform storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.Find(transformName.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- transformName = null;
- storeValue = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs.meta deleted file mode 100644 index 7f6d7a53..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/FindChild.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 62d28af7da95a12409245b2682550bcc
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs deleted file mode 100644 index cee67ccb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs +++ /dev/null @@ -1,66 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Gets the Angle between a GameObject's forward direction and a target. Returns Success.")]
- public class GetAngleToTarget : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The target object to measure the angle to. If null the targetPosition will be used.")]
- public SharedGameObject targetObject;
- [Tooltip("The world position to measure an angle to. If the targetObject is also not null, this value is used as an offset from that object's position.")]
- public SharedVector3 targetPosition;
- [Tooltip("Ignore height differences when calculating the angle?")]
- public SharedBool ignoreHeight = true;
- [Tooltip("The angle to the target")]
- [RequiredField]
- public SharedFloat storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- Vector3 targetPos;
- if (targetObject.Value != null) {
- targetPos = targetObject.Value.transform.InverseTransformPoint(targetPosition.Value);
- } else {
- targetPos = targetPosition.Value;
- }
-
- if (ignoreHeight.Value) {
- targetPos.y = targetTransform.position.y;
- }
-
- var targetDir = targetPos - targetTransform.position;
- storeValue.Value = Vector3.Angle(targetDir, targetTransform.forward);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- targetObject = null;
- targetPosition = Vector3.zero;
- ignoreHeight = true;
- storeValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs.meta deleted file mode 100644 index d34a2704..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetAngleToTarget.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ae176a605fff9a2468198085313c26ad
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs deleted file mode 100644 index 337e2341..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the transform child at the specified index. Returns Success.")]
- public class GetChild : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The index of the child")]
- public SharedInt index;
- [Tooltip("The child of the Transform")]
- [RequiredField]
- public SharedTransform storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.GetChild(index.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- index = 0;
- storeValue = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs.meta deleted file mode 100644 index a90dba3a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChild.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 04ea225bb12181a4daf7f3d6a21eaa5d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs deleted file mode 100644 index aca95e80..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the number of children a Transform has. Returns Success.")]
- public class GetChildCount : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The number of children")]
- [RequiredField]
- public SharedInt storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.childCount;
-
- 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/Transform/GetChildCount.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs.meta deleted file mode 100644 index 0ff26358..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetChildCount.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8e31c13112e4d334ab9d67feaac94d3f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs deleted file mode 100644 index a7764a8b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the euler angles of the Transform. Returns Success.")]
- public class GetEulerAngles : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The euler angles of the Transform")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.eulerAngles;
-
- 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/Transform/GetEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs.meta deleted file mode 100644 index 0118e3b4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetEulerAngles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 43295a23f5d9cb345ae408d5ac843b52
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs deleted file mode 100644 index 0420db5b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the forward vector of the Transform. Returns Success.")]
- public class GetForwardVector : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Transform")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.forward;
-
- 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/Transform/GetForwardVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs.meta deleted file mode 100644 index 6bda0d73..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetForwardVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a5748c07a5ebe54429eb3e9ae032b5e2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs deleted file mode 100644 index fee24dde..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the local euler angles of the Transform. Returns Success.")]
- public class GetLocalEulerAngles : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local euler angles of the Transform")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.localEulerAngles;
-
- 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/Transform/GetLocalEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs.meta deleted file mode 100644 index 40c781a6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalEulerAngles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 459c793e1b836104f901813471414ccc
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs deleted file mode 100644 index 56737de6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the local position of the Transform. Returns Success.")]
- public class GetLocalPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local position of the Transform")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.localPosition;
-
- 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/Transform/GetLocalPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs.meta deleted file mode 100644 index 57d121c8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4fdc0d751b2c91f438142cf65fcbba34
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs deleted file mode 100644 index e2572ab1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the local rotation of the Transform. Returns Success.")]
- public class GetLocalRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local rotation of the Transform")]
- [RequiredField]
- public SharedQuaternion storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.localRotation;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs.meta deleted file mode 100644 index 6cc867c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2334ddf0e58b67e40ad16e2f63dad8ee
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs deleted file mode 100644 index bfdc2831..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the local scale of the Transform. Returns Success.")]
- public class GetLocalScale : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local scale of the Transform")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.localScale;
-
- 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/Transform/GetLocalScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs.meta deleted file mode 100644 index 115bef16..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetLocalScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e0b10fe3fcda1914fbbdde4a860cd403
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs deleted file mode 100644 index 53f2ee1e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the parent of the Transform. Returns Success.")]
- public class GetParent : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The parent of the Transform")]
- [RequiredField]
- public SharedTransform storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.parent;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs.meta deleted file mode 100644 index 2dffa644..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetParent.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f149245d8fce789498c301657a7eaf88
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs deleted file mode 100644 index 4a6b9cf1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the position of the Transform. Returns Success.")]
- public class GetPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Can the target GameObject be empty?")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.position;
-
- 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/Transform/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs.meta deleted file mode 100644 index 207a32c8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9ce1fdc3f652b3043b5116efba12cc48
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs deleted file mode 100644 index 370d14a9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the right vector of the Transform. Returns Success.")]
- public class GetRightVector : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Transform")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.right;
-
- 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/Transform/GetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs.meta deleted file mode 100644 index 202902a1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRightVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6b5147164f2674547888db24cba68770
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs deleted file mode 100644 index d8a16aec..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the rotation of the Transform. Returns Success.")]
- public class GetRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rotation of the Transform")]
- [RequiredField]
- public SharedQuaternion storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.rotation;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs.meta deleted file mode 100644 index ca52e97b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5384b69809f40f5489ca7d7d345471d2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs deleted file mode 100644 index e557b713..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Stores the up vector of the Transform. Returns Success.")]
- public class GetUpVector : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Transform")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = targetTransform.up;
-
- 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/Transform/GetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs.meta deleted file mode 100644 index 0e6f55a2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/GetUpVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 605a7c93705031042be47bd4a4ab6079
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs deleted file mode 100644 index 4e4886b4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Returns Success if the transform is a child of the specified GameObject.")]
- public class IsChildOf : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The interested transform")]
- public SharedTransform transformName;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- return targetTransform.IsChildOf(transformName.Value) ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- transformName = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs.meta deleted file mode 100644 index 9f93239e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/IsChildOf.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 304e488eb1caa4f45a8bd903292492ca
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs deleted file mode 100644 index bee3c7a9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Rotates the transform so the forward vector points at worldPosition. Returns Success.")]
- public class LookAt : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Point to look at")]
- public SharedVector3 worldPosition;
- [Tooltip("Vector specifying the upward direction")]
- public Vector3 worldUp;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.LookAt(worldPosition.Value, worldUp);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- worldPosition = Vector3.up;
- worldUp = Vector3.up;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs.meta deleted file mode 100644 index 6e3189ff..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/LookAt.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 64883614392671f438244b3aa5b91c6c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs deleted file mode 100644 index 267fe653..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Applies a rotation. Returns Success.")]
- public class Rotate : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Amount to rotate")]
- public SharedVector3 eulerAngles;
- [Tooltip("Specifies which axis the rotation is relative to")]
- public Space relativeTo = Space.Self;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.Rotate(eulerAngles.Value, relativeTo);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- eulerAngles = Vector3.zero;
- relativeTo = Space.Self;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs.meta deleted file mode 100644 index b4a9c387..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Rotate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: db0cba6372babb541a0da57412963760
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs deleted file mode 100644 index ac3feb57..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs +++ /dev/null @@ -1,50 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Applies a rotation. Returns Success.")]
- public class RotateAround : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Point to rotate around")]
- public SharedVector3 point;
- [Tooltip("Axis to rotate around")]
- public SharedVector3 axis;
- [Tooltip("Amount to rotate")]
- public SharedFloat angle;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.RotateAround(point.Value, axis.Value, angle.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- point = Vector3.zero;
- axis = Vector3.zero;
- angle = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs.meta deleted file mode 100644 index 8bd780cc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/RotateAround.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 65cef920fcc4ec449a1e6a29fe79c024
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs deleted file mode 100644 index bc509186..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the euler angles of the Transform. Returns Success.")]
- public class SetEulerAngles : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The euler angles of the Transform")]
- public SharedVector3 eulerAngles;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.eulerAngles = eulerAngles.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- eulerAngles = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs.meta deleted file mode 100644 index 4a20efd1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetEulerAngles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: edad3f12ad10ba14aac656b7f431ff31
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs deleted file mode 100644 index 6deec202..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the forward vector of the Transform. Returns Success.")]
- public class SetForwardVector : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Transform")]
- public SharedVector3 position;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.forward = position.Value;
-
- return TaskStatus.Success;
- }
-
- 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/Transform/SetForwardVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs.meta deleted file mode 100644 index 283c1b33..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetForwardVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4cf669b5419d7294cb72c90881267c0c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs deleted file mode 100644 index fcb72a1a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the local euler angles of the Transform. Returns Success.")]
- public class SetLocalEulerAngles : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local euler angles of the Transform")]
- public SharedVector3 localEulerAngles;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.localEulerAngles = localEulerAngles.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- localEulerAngles = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs.meta deleted file mode 100644 index 644c7104..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalEulerAngles.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2e1ed691ebf9f154e88bb8be7319baad
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs deleted file mode 100644 index 9ef9f235..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the local position of the Transform. Returns Success.")]
- public class SetLocalPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local position of the Transform")]
- public SharedVector3 localPosition;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.localPosition = localPosition.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- localPosition = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs.meta deleted file mode 100644 index 53cc9193..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5af08673c7a3bb54c974bb23094d4587
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs deleted file mode 100644 index f21d3b5a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the local rotation of the Transform. Returns Success.")]
- public class SetLocalRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local rotation of the Transform")]
- public SharedQuaternion localRotation;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.localRotation = localRotation.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- localRotation = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs.meta deleted file mode 100644 index 26baaac4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: de22c6e6826367540b2f25957757a1d4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs deleted file mode 100644 index 7b0f68ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the local scale of the Transform. Returns Success.")]
- public class SetLocalScale : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The local scale of the Transform")]
- public SharedVector3 localScale;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.localScale = localScale.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- localScale = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs.meta deleted file mode 100644 index 63025bea..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetLocalScale.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 354ce71974ea2b44ab820c8285f72421
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs deleted file mode 100644 index 92673a8a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the parent of the Transform. Returns Success.")]
- public class SetParent : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The parent of the Transform")]
- public SharedTransform parent;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.parent = parent.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- parent = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs.meta deleted file mode 100644 index 17981286..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetParent.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a19c91d6c31b48d45b2ea97efeae14aa
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs deleted file mode 100644 index 28bcf0b1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the position of the Transform. Returns Success.")]
- public class SetPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Transform")]
- public SharedVector3 position;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.position = position.Value;
-
- return TaskStatus.Success;
- }
-
- 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/Transform/SetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs.meta deleted file mode 100644 index 1273580e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d0586a5078618624398df51fd677a2e0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs deleted file mode 100644 index 9479a024..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the right vector of the Transform. Returns Success.")]
- public class SetRightVector : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Transform")]
- public SharedVector3 position;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.right = position.Value;
-
- return TaskStatus.Success;
- }
-
- 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/Transform/SetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs.meta deleted file mode 100644 index a27cf794..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRightVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4629bee77af22ca42a716dfa8ad3e669
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs deleted file mode 100644 index 8885fa78..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the rotation of the Transform. Returns Success.")]
- public class SetRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rotation of the Transform")]
- public SharedQuaternion rotation;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.rotation = rotation.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- rotation = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs.meta deleted file mode 100644 index 53f60e32..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fb61cc6175ff14c4d84c3c72541bc30d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs deleted file mode 100644 index 8edbbc3b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs +++ /dev/null @@ -1,44 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Sets the up vector of the Transform. Returns Success.")]
- public class SetUpVector : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Transform")]
- public SharedVector3 position;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.up = position.Value;
-
- return TaskStatus.Success;
- }
-
- 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/Transform/SetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs.meta deleted file mode 100644 index 4b2cc9fe..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/SetUpVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2e65dee462c24694a9835796a770af6e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs deleted file mode 100644 index bc636713..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform
-{
- [TaskCategory("Basic/Transform")]
- [TaskDescription("Moves the transform in the direction and distance of translation. Returns Success.")]
- public class Translate : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("Move direction and distance")]
- public SharedVector3 translation;
- [Tooltip("Specifies which axis the rotation is relative to")]
- public Space relativeTo = Space.Self;
-
- private Transform targetTransform;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (targetTransform == null) {
- Debug.LogWarning("Transform is null");
- return TaskStatus.Failure;
- }
-
- targetTransform.Translate(translation.Value, relativeTo);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- translation = Vector3.zero;
- relativeTo = Space.Self;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs.meta deleted file mode 100644 index 7a7a81b5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Transform/Translate.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d4a788705b79d3745a26867acf47a63a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2.meta deleted file mode 100644 index c6faa103..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: ea5a99c944135bb47be3809004f4ca10
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs deleted file mode 100644 index c5f623ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Clamps the magnitude of the Vector2.")]
- public class ClampMagnitude : Action
- {
- [Tooltip("The Vector2 to clamp the magnitude of")]
- public SharedVector2 vector2Variable;
- [Tooltip("The max length of the magnitude")]
- public SharedFloat maxLength;
- [Tooltip("The clamp magnitude resut")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector2.ClampMagnitude(vector2Variable.Value, maxLength.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Variable = storeResult = Vector2.zero;
- maxLength = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs.meta deleted file mode 100644 index e11a61d7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/ClampMagnitude.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a2a5d2ecd681ef64ea5b5fbf81cc0b2d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs deleted file mode 100644 index 2cbd2c92..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Returns the distance between two Vector2s.")]
- public class Distance : Action
- {
- [Tooltip("The first Vector2")]
- public SharedVector2 firstVector2;
- [Tooltip("The second Vector2")]
- public SharedVector2 secondVector2;
- [Tooltip("The distance")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector2.Distance(firstVector2.Value, secondVector2.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- firstVector2 = secondVector2 = Vector2.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs.meta deleted file mode 100644 index 389ce4b6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Distance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a35c2cb53a768894f8d81c2e8dc87b9b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs deleted file mode 100644 index 4af9ad76..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Stores the dot product of two Vector2 values.")]
- public class Dot : Action
- {
- [Tooltip("The left hand side of the dot product")]
- public SharedVector2 leftHandSide;
- [Tooltip("The right hand side of the dot product")]
- public SharedVector2 rightHandSide;
- [Tooltip("The dot product result")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector2.Dot(leftHandSide.Value, rightHandSide.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- leftHandSide = rightHandSide = Vector2.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs.meta deleted file mode 100644 index 6b58750a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Dot.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c9c233b5173aece4493146b736d4e65d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs deleted file mode 100644 index 859ad120..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Stores the magnitude of the Vector2.")]
- public class GetMagnitude : Action
- {
- [Tooltip("The Vector2 to get the magnitude of")]
- public SharedVector2 vector2Variable;
- [Tooltip("The magnitude of the vector")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector2Variable.Value.magnitude;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Variable = Vector2.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs.meta deleted file mode 100644 index 6f801cb5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetMagnitude.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 64a63651c7294144197858c8b6387b49
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs deleted file mode 100644 index cf72120f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Stores the right vector value.")]
- public class GetRightVector : Action
- {
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector2.right;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs.meta deleted file mode 100644 index 94690766..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetRightVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f46062197c393bb4a809f7faf8e9fc70
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs deleted file mode 100644 index d9e14486..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Stores the square magnitude of the Vector2.")]
- public class GetSqrMagnitude : Action
- {
- [Tooltip("The Vector2 to get the square magnitude of")]
- public SharedVector2 vector2Variable;
- [Tooltip("The square magnitude of the vector")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector2Variable.Value.sqrMagnitude;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Variable = Vector2.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs.meta deleted file mode 100644 index 07dbd02b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetSqrMagnitude.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5366ccb4258ea7f49ae280d05d2a195c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs deleted file mode 100644 index 0cd73e00..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Stores the up vector value.")]
- public class GetUpVector : Action
- {
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector2.up;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs.meta deleted file mode 100644 index 0d51499d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetUpVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7ec54e34058d3a04dbd9ed27538731b0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs deleted file mode 100644 index f4d024f0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Stores the Vector3 value of the Vector2.")]
- public class GetVector3 : Action
- {
- [Tooltip("The Vector2 to get the Vector3 value of")]
- public SharedVector2 vector3Variable;
- [Tooltip("The Vector3 value")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector3Variable.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = Vector2.zero;
- storeResult = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs.meta deleted file mode 100644 index f5233585..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetVector3.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 89ba2f45bfecb9c40a4de0394c8019e0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs deleted file mode 100644 index a9bae4d0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Stores the X and Y values of the Vector2.")]
- public class GetXY : Action
- {
- [Tooltip("The Vector2 to get the values of")]
- public SharedVector2 vector2Variable;
- [Tooltip("The X value")]
- [RequiredField]
- public SharedFloat storeX;
- [Tooltip("The Y value")]
- [RequiredField]
- public SharedFloat storeY;
-
- public override TaskStatus OnUpdate()
- {
- storeX.Value = vector2Variable.Value.x;
- storeY.Value = vector2Variable.Value.y;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Variable = Vector2.zero;
- storeX = storeY = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs.meta deleted file mode 100644 index 8a640ee7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/GetXY.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e258a57c9873ecf4fb8a1432e418ecb4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs deleted file mode 100644 index 32c71287..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Lerp the Vector2 by an amount.")]
- public class Lerp : Action
- {
- [Tooltip("The from value")]
- public SharedVector2 fromVector2;
- [Tooltip("The to value")]
- public SharedVector2 toVector2;
- [Tooltip("The amount to lerp")]
- public SharedFloat lerpAmount;
- [Tooltip("The lerp resut")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector2.Lerp(fromVector2.Value, toVector2.Value, lerpAmount.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromVector2 = toVector2 = storeResult = Vector2.zero;
- lerpAmount = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs.meta deleted file mode 100644 index 35226670..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Lerp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6f709035ad060c04d9f758980ad7e2c3
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs deleted file mode 100644 index c84fd517..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Move from the current position to the target position.")]
- public class MoveTowards : Action
- {
- [Tooltip("The current position")]
- public SharedVector2 currentPosition;
- [Tooltip("The target position")]
- public SharedVector2 targetPosition;
- [Tooltip("The movement speed")]
- public SharedFloat speed;
- [Tooltip("The move resut")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector2.MoveTowards(currentPosition.Value, targetPosition.Value, speed.Value * Time.deltaTime);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- currentPosition = targetPosition = storeResult = Vector2.zero;
- speed = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs.meta deleted file mode 100644 index f07218be..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/MoveTowards.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ab464382cafa087498bef68f6988dff7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs deleted file mode 100644 index 3fccd123..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Multiply the Vector2 by a float.")]
- public class Multiply : Action
- {
- [Tooltip("The Vector2 to multiply of")]
- public SharedVector2 vector2Variable;
- [Tooltip("The value to multiply the Vector2 of")]
- public SharedFloat multiplyBy;
- [Tooltip("The multiplication resut")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector2Variable.Value * multiplyBy.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Variable = storeResult = Vector2.zero;
- multiplyBy = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs.meta deleted file mode 100644 index d736ec3d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Multiply.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 7f21148eaa498684baa11ac8ac177599
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs deleted file mode 100644 index cdd999b0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs +++ /dev/null @@ -1,26 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Normalize the Vector2.")]
- public class Normalize : Action
- {
- [Tooltip("The Vector2 to normalize")]
- public SharedVector2 vector2Variable;
- [Tooltip("The normalized resut")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector2Variable.Value.normalized;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Variable = storeResult = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs.meta deleted file mode 100644 index 6d170e15..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Normalize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ed5b59611a512984f9755c358afc67d8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs deleted file mode 100644 index 36d9a29f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Performs a math operation on two Vector2s: Add, Subtract, Multiply, Divide, Min, or Max.")]
- public class Operator : Action
- {
- public enum Operation
- {
- Add,
- Subtract,
- Scale
- }
-
- [Tooltip("The operation to perform")]
- public Operation operation;
- [Tooltip("The first Vector2")]
- public SharedVector2 firstVector2;
- [Tooltip("The second Vector2")]
- public SharedVector2 secondVector2;
- [Tooltip("The variable to store the result")]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- switch (operation) {
- case Operation.Add:
- storeResult.Value = firstVector2.Value + secondVector2.Value;
- break;
- case Operation.Subtract:
- storeResult.Value = firstVector2.Value - secondVector2.Value;
- break;
- case Operation.Scale:
- storeResult.Value = Vector2.Scale(firstVector2.Value, secondVector2.Value);
- break;
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- operation = Operation.Add;
- firstVector2 = secondVector2 = storeResult = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs.meta deleted file mode 100644 index 7414ab28..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/Operator.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2ae8ac6f41714174fa63df41c7e32019
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs deleted file mode 100644 index 98c9d496..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Sets the value of the Vector2.")]
- public class SetValue : Action
- {
- [Tooltip("The Vector2 to get the values of")]
- public SharedVector2 vector2Value;
- [Tooltip("The Vector2 to set the values of")]
- public SharedVector2 vector2Variable;
-
- public override TaskStatus OnUpdate()
- {
- vector2Variable.Value = vector2Value.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Value = vector2Variable = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs.meta deleted file mode 100644 index 44d21ec4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetValue.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 61e3d384c43977148b829dab4090ab3b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs deleted file mode 100644 index a4035d0f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector2
-{
- [TaskCategory("Basic/Vector2")]
- [TaskDescription("Sets the X and Y values of the Vector2.")]
- public class SetXY : Action
- {
- [Tooltip("The Vector2 to set the values of")]
- public SharedVector2 vector2Variable;
- [Tooltip("The X value. Set to None to have the value ignored")]
- public SharedFloat xValue;
- [Tooltip("The Y value. Set to None to have the value ignored")]
- public SharedFloat yValue;
-
- public override TaskStatus OnUpdate()
- {
- var vector2Value = vector2Variable.Value;
- if (!xValue.IsNone) {
- vector2Value.x = xValue.Value;
- }
- if (!yValue.IsNone) {
- vector2Value.y = yValue.Value;
- }
- vector2Variable.Value = vector2Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector2Variable = Vector2.zero;
- xValue = yValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs.meta deleted file mode 100644 index c7e52233..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector2/SetXY.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a24836a22bca9bd4ab701e35bf36f6a9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3.meta deleted file mode 100644 index 8133f780..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2
-guid: 65391955a7357ef4e82aa0214dc9b407
-DefaultImporter:
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs deleted file mode 100644 index 910ee6fe..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Returns the angle between two Vector3s.")]
- public class Angle : Action
- {
- [Tooltip("The first Vector3")]
- public SharedVector3 firstVector3;
- [Tooltip("The second Vector3")]
- public SharedVector3 secondVector3;
- [Tooltip("The angle")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.Angle(firstVector3.Value, secondVector3.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- firstVector3 = secondVector3 = Vector3.zero;
- storeResult = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs.meta deleted file mode 100644 index 60a69e2f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Angle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1e3b18a7f2f7db54992b881f449091ad
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs deleted file mode 100644 index c2a7c261..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Clamps the magnitude of the Vector3.")]
- public class ClampMagnitude : Action
- {
- [Tooltip("The Vector3 to clamp the magnitude of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The max length of the magnitude")]
- public SharedFloat maxLength;
- [Tooltip("The clamp magnitude resut")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.ClampMagnitude(vector3Variable.Value, maxLength.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = storeResult = Vector3.zero;
- maxLength = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs.meta deleted file mode 100644 index 5d1bc9d7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/ClampMagnitude.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: e3d2efd14a9499b47a17ea16bf45512f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs deleted file mode 100644 index d8777328..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Returns the distance between two Vector3s.")]
- public class Distance : Action
- {
- [Tooltip("The first Vector3")]
- public SharedVector3 firstVector3;
- [Tooltip("The second Vector3")]
- public SharedVector3 secondVector3;
- [Tooltip("The distance")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.Distance(firstVector3.Value, secondVector3.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- firstVector3 = secondVector3 = Vector3.zero;
- storeResult = 0;
- }
- }
-}
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs.meta deleted file mode 100644 index fbe88045..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Distance.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8c4522b996b52d040822fb808cfc9d97
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs deleted file mode 100644 index 37daaa41..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the dot product of two Vector3 values.")]
- public class Dot : Action
- {
- [Tooltip("The left hand side of the dot product")]
- public SharedVector3 leftHandSide;
- [Tooltip("The right hand side of the dot product")]
- public SharedVector3 rightHandSide;
- [Tooltip("The dot product result")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.Dot(leftHandSide.Value, rightHandSide.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- leftHandSide = rightHandSide = Vector3.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs.meta deleted file mode 100644 index de0a620f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Dot.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fe5e2655abffbe94eba3f6a0abd34b5c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs deleted file mode 100644 index 12c8b6fc..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the forward vector value.")]
- public class GetForwardVector : Action
- {
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.forward;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs.meta deleted file mode 100644 index 599a8210..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetForwardVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b09c11f987794eb45b65e0ef249cdb3f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs deleted file mode 100644 index 9bf51c68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the magnitude of the Vector3.")]
- public class GetMagnitude : Action
- {
- [Tooltip("The Vector3 to get the magnitude of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The magnitude of the vector")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector3Variable.Value.magnitude;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = Vector3.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs.meta deleted file mode 100644 index c06d20e0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetMagnitude.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: dcf2397966692fe4a819a0db18186778
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs deleted file mode 100644 index ee8b33cf..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the right vector value.")]
- public class GetRightVector : Action
- {
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.right;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs.meta deleted file mode 100644 index 654a6945..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetRightVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ca338b1189144fe47ab9b1fa6a54e970
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs deleted file mode 100644 index 99fe0e2c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the square magnitude of the Vector3.")]
- public class GetSqrMagnitude : Action
- {
- [Tooltip("The Vector3 to get the square magnitude of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The square magnitude of the vector")]
- [RequiredField]
- public SharedFloat storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector3Variable.Value.sqrMagnitude;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = Vector3.zero;
- storeResult = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs.meta deleted file mode 100644 index 56daef6a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetSqrMagnitude.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fb704714eacb92948bd59ddd38865b59
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs deleted file mode 100644 index b6d270ae..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs +++ /dev/null @@ -1,24 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the up vector value.")]
- public class GetUpVector : Action
- {
- [Tooltip("The stored result")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.up;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- storeResult = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs.meta deleted file mode 100644 index 9601373f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetUpVector.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 225a4566a02bdec4e82a2335b4e6c5fc
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs deleted file mode 100644 index db33cebd..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the Vector2 value of the Vector3.")]
- public class GetVector2 : Action
- {
- [Tooltip("The Vector3 to get the Vector2 value of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The Vector2 value")]
- [RequiredField]
- public SharedVector2 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector3Variable.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = Vector3.zero;
- storeResult = Vector2.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs.meta deleted file mode 100644 index 76cebfab..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetVector2.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 959ed107c681b1c44af1b842ed7ca445
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs deleted file mode 100644 index efed738a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs +++ /dev/null @@ -1,35 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Stores the X, Y, and Z values of the Vector3.")]
- public class GetXYZ : Action
- {
- [Tooltip("The Vector3 to get the values of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The X value")]
- [RequiredField]
- public SharedFloat storeX;
- [Tooltip("The Y value")]
- [RequiredField]
- public SharedFloat storeY;
- [Tooltip("The Z value")]
- [RequiredField]
- public SharedFloat storeZ;
-
- public override TaskStatus OnUpdate()
- {
- storeX.Value = vector3Variable.Value.x;
- storeY.Value = vector3Variable.Value.y;
- storeZ.Value = vector3Variable.Value.z;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = Vector3.zero;
- storeX = storeY = storeZ = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta deleted file mode 100644 index 5cee68be..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/GetXYZ.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: fbab043af227fe14e8875a1df65cbae4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs deleted file mode 100644 index 4819bc78..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Lerp the Vector3 by an amount.")]
- public class Lerp : Action
- {
- [Tooltip("The from value")]
- public SharedVector3 fromVector3;
- [Tooltip("The to value")]
- public SharedVector3 toVector3;
- [Tooltip("The amount to lerp")]
- public SharedFloat lerpAmount;
- [Tooltip("The lerp resut")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.Lerp(fromVector3.Value, toVector3.Value, lerpAmount.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- fromVector3 = toVector3 = storeResult = Vector3.zero;
- lerpAmount = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs.meta deleted file mode 100644 index 3304331f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Lerp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ef769062529820342a12a00e9cf8611d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs deleted file mode 100644 index 75d80cc4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Move from the current position to the target position.")]
- public class MoveTowards : Action
- {
- [Tooltip("The current position")]
- public SharedVector3 currentPosition;
- [Tooltip("The target position")]
- public SharedVector3 targetPosition;
- [Tooltip("The movement speed")]
- public SharedFloat speed;
- [Tooltip("The move resut")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.MoveTowards(currentPosition.Value, targetPosition.Value, speed.Value * Time.deltaTime);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- currentPosition = targetPosition = storeResult = Vector3.zero;
- speed = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs.meta deleted file mode 100644 index 7e9c4c19..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/MoveTowards.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b6562a7b02f6ab1478612f41defc5299
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs deleted file mode 100644 index 9c693267..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Multiply the Vector3 by a float.")]
- public class Multiply : Action
- {
- [Tooltip("The Vector3 to multiply of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The value to multiply the Vector3 of")]
- public SharedFloat multiplyBy;
- [Tooltip("The multiplication resut")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = vector3Variable.Value * multiplyBy.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = storeResult = Vector3.zero;
- multiplyBy = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs.meta deleted file mode 100644 index 7bde7ce4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Multiply.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1d1d7bd2678e229468abd363ac4a3dd6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs deleted file mode 100644 index 64c583b7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs +++ /dev/null @@ -1,26 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Normalize the Vector3.")]
- public class Normalize : Action
- {
- [Tooltip("The Vector3 to normalize")]
- public SharedVector3 vector3Variable;
- [Tooltip("The normalized resut")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.Normalize(vector3Variable.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = storeResult = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs.meta deleted file mode 100644 index 5cde0a68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Normalize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: bc8d58dc29ef6ab49a11e77f517e30ca
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs deleted file mode 100644 index fbb467ef..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Performs a math operation on two Vector3s: Add, Subtract, Multiply, Divide, Min, or Max.")]
- public class Operator : Action
- {
- public enum Operation
- {
- Add,
- Subtract,
- Scale
- }
-
- [Tooltip("The operation to perform")]
- public Operation operation;
- [Tooltip("The first Vector3")]
- public SharedVector3 firstVector3;
- [Tooltip("The second Vector3")]
- public SharedVector3 secondVector3;
- [Tooltip("The variable to store the result")]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- switch (operation) {
- case Operation.Add:
- storeResult.Value = firstVector3.Value + secondVector3.Value;
- break;
- case Operation.Subtract:
- storeResult.Value = firstVector3.Value - secondVector3.Value;
- break;
- case Operation.Scale:
- storeResult.Value = Vector3.Scale(firstVector3.Value, secondVector3.Value);
- break;
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- operation = Operation.Add;
- firstVector3 = secondVector3 = storeResult = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs.meta deleted file mode 100644 index 96cbfbd6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/Operator.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 606d84afee1cfbe4892d452884d36be8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs deleted file mode 100644 index e012d875..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Rotate the current rotation to the target rotation.")]
- public class RotateTowards : Action
- {
- [Tooltip("The current rotation in euler angles")]
- public SharedVector3 currentRotation;
- [Tooltip("The target rotation in euler angles")]
- public SharedVector3 targetRotation;
- [Tooltip("The maximum delta of the degrees")]
- public SharedFloat maxDegreesDelta;
- [Tooltip("The maximum delta of the magnitude")]
- public SharedFloat maxMagnitudeDelta;
- [Tooltip("The rotation resut")]
- [RequiredField]
- public SharedVector3 storeResult;
-
- public override TaskStatus OnUpdate()
- {
- storeResult.Value = Vector3.RotateTowards(currentRotation.Value, targetRotation.Value, maxDegreesDelta.Value * Mathf.Deg2Rad * Time.deltaTime, maxMagnitudeDelta.Value);
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- currentRotation = targetRotation = storeResult = Vector3.zero;
- maxDegreesDelta = maxMagnitudeDelta = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs.meta deleted file mode 100644 index 5847704a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/RotateTowards.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 55175ed9420ee88429fbb91a9b433b9c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs deleted file mode 100644 index 20034af0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs +++ /dev/null @@ -1,25 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Sets the value of the Vector3.")]
- public class SetValue : Action
- {
- [Tooltip("The Vector3 to get the values of")]
- public SharedVector3 vector3Value;
- [Tooltip("The Vector3 to set the values of")]
- public SharedVector3 vector3Variable;
-
- public override TaskStatus OnUpdate()
- {
- vector3Variable.Value = vector3Value.Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Value = vector3Variable = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs.meta deleted file mode 100644 index d574f5ee..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetValue.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d512a8eb2bde4ea49868fdd746dafb0d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs deleted file mode 100644 index 82d466ca..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityVector3
-{
- [TaskCategory("Basic/Vector3")]
- [TaskDescription("Sets the X, Y, and Z values of the Vector3.")]
- public class SetXYZ : Action
- {
- [Tooltip("The Vector3 to set the values of")]
- public SharedVector3 vector3Variable;
- [Tooltip("The X value. Set to None to have the value ignored")]
- public SharedFloat xValue;
- [Tooltip("The Y value. Set to None to have the value ignored")]
- public SharedFloat yValue;
- [Tooltip("The Z value. Set to None to have the value ignored")]
- public SharedFloat zValue;
-
- public override TaskStatus OnUpdate()
- {
- var vector3Value = vector3Variable.Value;
- if (!xValue.IsNone) {
- vector3Value.x = xValue.Value;
- }
- if (!yValue.IsNone) {
- vector3Value.y = yValue.Value;
- }
- if (!zValue.IsNone) {
- vector3Value.z = zValue.Value;
- }
- vector3Variable.Value = vector3Value;
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- vector3Variable = Vector3.zero;
- xValue = yValue = zValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta deleted file mode 100644 index 56cef77b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Vector3/SetXYZ.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: efcd4530935b0c445804e64d0820f27b
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
|