示例#1
0
        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();
                }
            }
        }
示例#2
0
 public TutorialService()
 {
     actionHandlers = new List <TutorialActionHandler>();
     instance       = this;
 }