namespace BehaviorTreeSlayer { public class SetContent : ActionNode { [OutField] public int IconIdx; [OutField] public string Content; [OutField] public int BtnCount; public override TaskResult Tick(double dt, object args = null) { BehaviorTree behaviorTree = args as BehaviorTree; behaviorTree.Dispatch("SetText", Content); behaviorTree.Dispatch("SetIcon", IconIdx); behaviorTree.Dispatch("SetBtns", BtnCount); return TaskResult.OK; } } }