Example #1
0
 private void PageFeed()
 {
     this.windowStatus = TutorialMessageWindow.Status.NONE;
     if (this.pushTapButtonAction != null)
     {
         this.pushTapButtonAction();
         this.pushTapButtonAction = null;
     }
 }
Example #2
0
 private void FinishedDisplayText()
 {
     this.windowStatus = TutorialMessageWindow.Status.NONE;
     if (this.finishedDisplayTextAction != null)
     {
         this.finishedDisplayTextAction();
         this.finishedDisplayTextAction = null;
     }
 }
Example #3
0
 public void SkipDisplayMessage(string message)
 {
     this.windowText.SetText(message);
     this.windowText.DisplayText();
     this.windowStatus              = TutorialMessageWindow.Status.NONE;
     this.window.activeCollider     = false;
     this.autoFeedTime              = 0f;
     this.finishedDisplayTextAction = null;
 }
Example #4
0
 private void Update()
 {
     TutorialMessageWindow.Status status = this.windowStatus;
     if (status != TutorialMessageWindow.Status.MESSAGE_DRAW)
     {
         if (status == TutorialMessageWindow.Status.AUTO_FEED_COUND_DOWN)
         {
             if (this.autoFeedTime <= Time.realtimeSinceStartup)
             {
                 this.PageFeed();
             }
         }
     }
     else if (this.windowText.UpdateDisplayText())
     {
         this.FinishedDisplayText();
     }
 }
Example #5
0
 public void StartAutoFeedCountDown(float autoFeedSeconds)
 {
     this.windowStatus = TutorialMessageWindow.Status.AUTO_FEED_COUND_DOWN;
     this.autoFeedTime = Time.realtimeSinceStartup + autoFeedSeconds;
 }
Example #6
0
 public void StartDisplayMessage(Action completed)
 {
     this.windowStatus              = TutorialMessageWindow.Status.MESSAGE_DRAW;
     this.window.activeCollider     = true;
     this.finishedDisplayTextAction = completed;
 }