private void PageFeed() { this.windowStatus = TutorialMessageWindow.Status.NONE; if (this.pushTapButtonAction != null) { this.pushTapButtonAction(); this.pushTapButtonAction = null; } }
private void FinishedDisplayText() { this.windowStatus = TutorialMessageWindow.Status.NONE; if (this.finishedDisplayTextAction != null) { this.finishedDisplayTextAction(); this.finishedDisplayTextAction = null; } }
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; }
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(); } }
public void StartAutoFeedCountDown(float autoFeedSeconds) { this.windowStatus = TutorialMessageWindow.Status.AUTO_FEED_COUND_DOWN; this.autoFeedTime = Time.realtimeSinceStartup + autoFeedSeconds; }
public void StartDisplayMessage(Action completed) { this.windowStatus = TutorialMessageWindow.Status.MESSAGE_DRAW; this.window.activeCollider = true; this.finishedDisplayTextAction = completed; }