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