internal static void Reset() { _resumePages.Clear(); transitionPage = new MenuPage("ResumeMenu Transition Page"); transitionPage.backButton.Destroy(); loadingLabel = new MenuLabel(transitionPage, "Please wait while save data loads..."); loadingLabel.Hide(); unloadingLabel = new MenuLabel(transitionPage, "Please wait while save data unloads..."); unloadingLabel.Hide(); insideResumeMenu = false; }
private static IEnumerator GoToResumeMenu(UIManager s, SaveSlotButton button, MenuPage resumePage) { InputHandler.Instance.StopUIInput(); yield return(s.HideSaveProfileMenu()); ReflectionHelper.CallMethod(s, "SetMenuState", MainMenuState.PLAY_MODE_MENU); transitionPage.Show(); loadingLabel.Show(); yield return(null); yield return(LoadGameAndDoAction(button.GetSaveSlotIndex(), () => { insideResumeMenu = true; loadingLabel.Hide(); transitionPage.Hide(); InputHandler.Instance.StartUIInput(); resumePage.Show(); })); }