mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
21 lines
587 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|