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