From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../SharedGameObjectsToGameObjectList.cs | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs') diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs deleted file mode 100644 index 5849ac45..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/SharedVariables/SharedGameObjectsToGameObjectList.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UnityEngine; -using System.Collections.Generic; - -namespace BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables -{ - [TaskCategory("Basic/SharedVariable")] - [TaskDescription("Sets the SharedGameObjectList values from the GameObjects. Returns Success.")] - public class SharedGameObjectsToGameObjectList : Action - { - [Tooltip("The GameObjects value")] - public SharedGameObject[] gameObjects; - [RequiredField] - [Tooltip("The SharedTransformList to set")] - public SharedGameObjectList storedGameObjectList; - - public override void OnAwake() - { - storedGameObjectList.Value = new List(); - } - - public override TaskStatus OnUpdate() - { - if (gameObjects == null || gameObjects.Length == 0) { - return TaskStatus.Failure; - } - - storedGameObjectList.Value.Clear(); - for (int i = 0; i < gameObjects.Length; ++i) { - storedGameObjectList.Value.Add(gameObjects[i].Value); - } - - return TaskStatus.Success; - } - - public override void OnReset() - { - gameObjects = null; - storedGameObjectList = null; - } - } -} \ No newline at end of file -- cgit v1.1-26-g67d0