// Check every 1 second
        private void CheckTutorialTriggers()
        {
            if (TutorialManager.currentTutorial != null)
            {
                return;
            }

            if (StateManager.Compare((State)TutorialManager.settings.skipCheckingStateMask))             // Do not check these states to save performance
            {
                return;
            }

            //if (StateManager.Compare(TutorialManager.settings.skipCheckingStateMask)) // Do not check these states to save performance
            //	return;

            if (TutorialManager.areAllTutorialsCompleted)               // No more tutorial, just destroy myself
            {
                Destroy(gameObject);
                return;
            }

            foreach (Tutorial t in TutorialManager.tutorials)
            {
                if (t.isCompleted)
                {
                    continue;
                }
                if (t.isValidated)
                {
                    TutorialManager.currentTutorial = t;
                    break;
                }
            }

            if (TutorialManager.isTutorialRunning)
            {
                GameAnalytics.FirstInteraction();                 // Log a first interaction event here before any tutorial start
            }
            TutorialManager.StartCurrentTutorial();
        }
Esempio n. 2
0
 public static void StartFirstTutorial()
 {
     TutorialManager.StartTutorial(1);
 }
Esempio n. 3
0
 protected override void CallEvent()
 {
     TutorialManager.CompleteManualSteps();
 }