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/CapsuleCollider | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/CapsuleCollider')
16 files changed, 0 insertions, 420 deletions
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:
|