Esempio n. 1
0
 public override void Enter()
 {
     actions[0].Execute();
     currentIndex  = 0;
     currentAction = actions[currentIndex];
     currentAction.Start();
 }
Esempio n. 2
0
        private void NextAction()
        {
            currentAction.Finish();
            currentIndex = ((currentIndex + 1 + actions.Count) % actions.Count);

            currentAction = actions[currentIndex];
            currentAction.Start();
        }
Esempio n. 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();
        }
        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();
        }
Esempio n. 5
0
 public override void Enter()
 {
     currentIndex  = 0;
     currentAction = actions[currentIndex];
     currentAction.Start();
 }
 public override void Enter()
 {
     currentIndex  = InRunRange() ? 2 : actions.Count - 3;
     currentAction = actions[currentIndex];
     currentAction.Start();
 }