IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Actions/Blackboard/Get Self.cs

21 lines
465 B
C#
Raw Permalink Normal View History

2024-10-11 10:12:15 +08:00
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);
}
}
}