IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Tasks/Actions/Blackboard/Get Self.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +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);
}
}
}