Files
CortexCore fd39099061 init
2024-01-23 02:56:26 +08:00

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);
}
}
}