From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Basic Tasks/GameObject/ActiveInHierarchy.cs | 22 --------------- .../GameObject/ActiveInHierarchy.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/ActiveSelf.cs | 22 --------------- .../Basic Tasks/GameObject/ActiveSelf.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/CompareTag.cs | 25 ---------------- .../Basic Tasks/GameObject/CompareTag.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/Destroy.cs | 32 --------------------- .../Runtime/Basic Tasks/GameObject/Destroy.cs.meta | 8 ------ .../Basic Tasks/GameObject/DestroyImmediate.cs | 25 ---------------- .../GameObject/DestroyImmediate.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/Find.cs | 28 ------------------ .../Runtime/Basic Tasks/GameObject/Find.cs.meta | 8 ------ .../GameObject/FindGameObjectsWithTag.cs | 31 -------------------- .../GameObject/FindGameObjectsWithTag.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/FindWithTag.cs | 28 ------------------ .../Basic Tasks/GameObject/FindWithTag.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/GetComponent.cs | 31 -------------------- .../Basic Tasks/GameObject/GetComponent.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/GetTag.cs | 28 ------------------ .../Runtime/Basic Tasks/GameObject/GetTag.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/Instantiate.cs | 33 ---------------------- .../Basic Tasks/GameObject/Instantiate.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/SendMessage.cs | 33 ---------------------- .../Basic Tasks/GameObject/SendMessage.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/SetActive.cs | 27 ------------------ .../Basic Tasks/GameObject/SetActive.cs.meta | 8 ------ .../Runtime/Basic Tasks/GameObject/SetTag.cs | 27 ------------------ .../Runtime/Basic Tasks/GameObject/SetTag.cs.meta | 8 ------ 28 files changed, 504 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveInHierarchy.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/ActiveSelf.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/CompareTag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Destroy.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/DestroyImmediate.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Find.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindGameObjectsWithTag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/FindWithTag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetTag.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/Instantiate.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SendMessage.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetActive.cs.meta delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/SetTag.cs.meta (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject') 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: -- cgit v1.1-26-g67d0