21 lines
465 B
C#
21 lines
465 B
C#
|
using NodeCanvas.Framework;
|
||
|
using ParadoxNotion.Design;
|
||
|
|
||
|
|
||
|
namespace NodeCanvas.Tasks.Actions
|
||
|
{
|
||
|
|
||
|
[Category("✫ Blackboard")]
|
||
|
[Description("Stores the agent gameobject on the blackboard.")]
|
||
|
public class GetSelf : ActionTask
|
||
|
{
|
||
|
|
||
|
[BlackboardOnly]
|
||
|
public BBParameter<UnityEngine.GameObject> saveAs;
|
||
|
|
||
|
protected override void OnExecute() {
|
||
|
saveAs.value = agent?.gameObject;
|
||
|
EndAction(true);
|
||
|
}
|
||
|
}
|
||
|
}
|