using NodeCanvas.Framework; using ParadoxNotion.Design; using UnityEngine; namespace NodeCanvas.Tasks.Actions { [Category("GameObject")] public class FindWithName : ActionTask { [RequiredField] public BBParameter gameObjectName; [BlackboardOnly] public BBParameter saveAs; protected override string info { get { return "Find Object " + gameObjectName + " as " + saveAs; } } protected override void OnExecute() { saveAs.value = GameObject.Find(gameObjectName.value); EndAction(); } } }