public void HandleBackButton() { if (IsLevelIntroViewVisible()) { // Do nothing } else if (RateMeScene.IsVisible()) { var controller = RateMeScene.GetController(); if (controller != null) { controller.FireLater(); } } else if (IsSumaryActive()) { HandleBackToMenuClicked(); } else if (IsPauseActive()) { HandlePauseViewBackToMenuClicked(); } else { Pause(); } }
private void Close() { m_view.NowPressed -= HandleNowPressed; m_view.LaterPressed -= HandleLaterPressed; m_view.NeverPressed -= HandleNeverPressed; RateMeScene.Close(); }
private void GoToLevels() { if (RateMeController.ShouldShowRateMe()) { // TODO: after closing popup, go to Levels automatically RateMeScene.Show(); return; } SendReviewEvent(m_summaryView.ImageReview); ShowLevelsSceneWithFade(m_gameplay.BundleId, m_gameplay.ImageId, m_gameplay.ImageId); }