コード例 #1
0
        public void FirstTickIsRunning()
        {
            Setup(out Blackboard context, out MockPrimitives.MockLeaf leaf);

            Node.NodeState state = leaf.Tick(context);

            Assert.True(state is Node.NodeState.Running);

            CleanUp(context, leaf);
        }
コード例 #2
0
        public void SecondTickIsSuccess()
        {
            Setup(out Blackboard context, out MockPrimitives.MockLeaf leaf);

            leaf.Tick(context);
            Node.NodeState state = leaf.Tick(context);

            Assert.True(state is Node.NodeState.Success);

            CleanUp(context, leaf);
        }
コード例 #3
0
ファイル: MonoNode.cs プロジェクト: SHEePYTaGGeRNeP/BTUnity
 public void Refresh()
 {
     this._currentState = this.node.CurrentState;
 }
コード例 #4
0
 public void ReturnState(Node.NodeState state)
 {
     Debug.Log("Tree completed with state: " + state);
 }