public static void ReturnToMenu(MenuPageType pageToLoad) { //Debug.Log("[GM]: ReturnToMenu"); SceneExtension.TrySwitchToScene(SceneExtension.MenuUiSceneName); SceneExtension.UnloadAllScenesExcept(SceneExtension.MenuUiSceneName); FindObjectOfType <MenuManager>().Reset(); var controller = FindObjectOfType <MenuPageController>(); controller.TurnMenuPageOff(controller.GetCurrentMenuPageType(), pageToLoad); }