Ejemplo n.º 1
0
 public void OnEnter()
 {
     if (CurrAction == null)
     {
         CurrAction = actions[currIndex];
     }
     CurrAction.OnEnter();
 }
Ejemplo n.º 2
0
 private void NextAction()
 {
     if (currIndex < actions.Count - 1)
     {
         currIndex++;
         CurrAction.OnExit();
         CurrAction = actions[currIndex];
         CurrAction.OnEnter();
     }
     else
     {
         OnFinish();
     }
 }