first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
|
||||
[Category("GameObject")]
|
||||
public class FindWithName : ActionTask
|
||||
{
|
||||
|
||||
[RequiredField]
|
||||
public BBParameter<string> gameObjectName;
|
||||
[BlackboardOnly]
|
||||
public BBParameter<GameObject> saveAs;
|
||||
|
||||
protected override string info {
|
||||
get { return "Find Object " + gameObjectName + " as " + saveAs; }
|
||||
}
|
||||
|
||||
protected override void OnExecute() {
|
||||
|
||||
saveAs.value = GameObject.Find(gameObjectName.value);
|
||||
EndAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user