Ejemplo n.º 1
0
 private void NextState()
 {
     m_currentAction.OnActionFinished();
     m_currentActionIndex++;
     m_currentAction = m_actions[m_currentActionIndex];
     m_currentAction.OnActionBegin();
 }
Ejemplo n.º 2
0
 public void FinisheAction(StoryAction stroyAction)
 {
     stroyAction.OnActionFinished();
     if (m_currentActionIndex + 1 < m_actions.Length)
     {
         NextState();
     }
     else
     {
         m_currentAction = null;
     }
 }