summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-10 14:07:40 +0800
committerchai <chaifix@163.com>2022-03-10 14:07:40 +0800
commit22891bf59032ba88262824255a706d652031384b (patch)
tree7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider
parent8b04ea73e540067f83870b61d89db4868fea5e8a (diff)
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider')
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs45
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs45
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs44
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta8
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs44
-rw-r--r--Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta8
8 files changed, 0 insertions, 210 deletions
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: