namespace AI { /// /// 行为树叶节点:始终返回 Status.Success。 /// public class ConstantNode_Success : BehaviorTreeBase { /// /// 执行节点逻辑,总是返回 Status.Success。 /// /// Status.Success public override Status Tick() { return Status.Success; } } /// /// 行为树叶节点:始终返回 Status.Failure。 /// public class ConstantNode_Failure : BehaviorTreeBase { /// /// 执行节点逻辑,总是返回 Status.Failure。 /// /// Status.Failure public override Status Tick() { return Status.Failure; } } /// /// 行为树叶节点:始终返回 Status.Running。 /// public class ConstantNode_Running : BehaviorTreeBase { /// /// 执行节点逻辑,总是返回 Status.Running。 /// /// Status.Running public override Status Tick() { return Status.Running; } } }