PC-20230316NUNE\Administrator 3afb2e3b86 临时提交
2024-08-17 14:12:46 +08:00

21 lines
587 B
C#

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