private void MoveToNextStep() { if (!hasComplete) { EventDispatcherService <T> .Dispatch(Constants.EVENT_TUT_STEP_COMPLETE, currentStep); stepIndex++; if (hasComplete) { TutorialService <T> .CompleteTutorial(id); } else { current = TutorialState.AwakeStep; elapseTime = 0f; Update(); } } }
public TutorialService() { actionHandlers = new List <TutorialActionHandler>(); instance = this; }