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/GameObject/GetComponent.cs | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/GameObject/GetComponent.cs') 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 -- cgit v1.1-26-g67d0