コード例 #1
0
 public override void Enter()
 {
     actions[0].Execute();
     currentIndex  = 0;
     currentAction = actions[currentIndex];
     currentAction.Start();
 }
コード例 #2
0
ファイル: PatrolState.cs プロジェクト: Eddieg26/RPG-Prototype
        private void NextAction()
        {
            currentAction.Finish();
            currentIndex = ((currentIndex + 1 + actions.Count) % actions.Count);

            currentAction = actions[currentIndex];
            currentAction.Start();
        }
コード例 #3
0
        private void NextAction()
        {
            currentAction.Finish();
            currentIndex = ((currentIndex + 1 + actions.Count) % actions.Count);
            if (currentIndex == 1 && InAttackRange())
            {
                currentIndex = 3;
            }

            currentAction = actions[currentIndex];
            currentAction.Start();
        }
コード例 #4
0
        private void NextAction()
        {
            currentAction.Finish();
            currentIndex = ((currentIndex + 1 + actions.Count) % actions.Count);
            if (currentIndex == 2 && !InRunRange())
            {
                currentIndex = actions.Count - 3;
            }

            currentAction = actions[currentIndex];
            currentAction.Start();
        }
コード例 #5
0
ファイル: PatrolState.cs プロジェクト: Eddieg26/RPG-Prototype
 public override void Enter()
 {
     currentIndex  = 0;
     currentAction = actions[currentIndex];
     currentAction.Start();
 }
コード例 #6
0
 public override void Enter()
 {
     currentIndex  = InRunRange() ? 2 : actions.Count - 3;
     currentAction = actions[currentIndex];
     currentAction.Start();
 }