From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Runtime/Basic Tasks/BoxCollider/GetCenter.cs | 45 ---------------------- .../Basic Tasks/BoxCollider/GetCenter.cs.meta | 8 ---- .../Runtime/Basic Tasks/BoxCollider/GetSize.cs | 45 ---------------------- .../Basic Tasks/BoxCollider/GetSize.cs.meta | 8 ---- .../Runtime/Basic Tasks/BoxCollider/SetCenter.cs | 44 --------------------- .../Basic Tasks/BoxCollider/SetCenter.cs.meta | 8 ---- .../Runtime/Basic Tasks/BoxCollider/SetSize.cs | 44 --------------------- .../Basic Tasks/BoxCollider/SetSize.cs.meta | 8 ---- 8 files changed, 210 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetCenter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/GetSize.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetCenter.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider/SetSize.cs.meta (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/BoxCollider') 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(); - 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(); - 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(); - 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(); - 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: -- cgit v1.1-26-g67d0