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