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

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