public override void Reset()
 {
     if (tutorialPanel == null)
     {
         return;
     }
     if (clickToComplete)
     {
         Button backgroundButton = tutorialPanel.GetBackgroundButton();
         if (backgroundButton != null)
         {
             backgroundButton.onClick.RemoveListener(DoComplete);
             if (timeBeforeClickable != 0)
             {
                 StopAllCoroutines();
                 backgroundButton.interactable = true;
             }
         }
     }
     ResetBackgroundMask();
     if (!doNotHidePanelOnComplete)
     {
         tutorialPanel.Reset();
         tutorialPanel.Hide();
     }
 }
        public override bool Init()
        {
            tutorialPanel = TutorialPanel.current;
            if (tutorialPanel == null)
            {
                Debug.LogErrorFormat("{0}:{1}:Init - Can't get TutorialPanel instance", name, GetType());
                return(false);
            }

            tutorialPanel.Reset(!showBackgroundMask);

            return(true);
        }
Beispiel #3
0
 public override void Reset()
 {
     if (_tutorialPanel == null)
     {
         return;
     }
     _tutorialPanel.ToggleCharacter(false);
     if (!doNotHidePanelOnComplete)
     {
         _tutorialPanel.Reset();
         _tutorialPanel.Hide();
     }
 }
Beispiel #4
0
        public override bool Init()
        {
            _tutorialPanel = TutorialPanel.current;
            if (_tutorialPanel == null)
            {
                Debug.LogError("TutorialDialogue:Init - Can't get UITutorialPanel instance");
                return(false);
            }

            _tutorialPanel.Reset(false);
            _tutorialPanel.Show();

            //ShowNextText();
            return(true);
        }