/// <summary> /// Changes current root controller stage by disabling all controllers, except ones that are specified for this stage. /// </summary> public void ChangeStage(MainMenuStage mainMenuStage) { DisableControllers(); _menuStage = mainMenuStage; switch (_menuStage) { case MainMenuStage.Actions: _menuActionsController.Enable(); break; case MainMenuStage.Start: break; case MainMenuStage.Load: break; case MainMenuStage.Options: break; case MainMenuStage.Credits: break; case MainMenuStage.Exit: break; default: break; } }
public void Init(GameObject spaceShip, GameObject uiCamera, GachaType type, GachaMainPageContext.GachaAmountType amountType, Action endCallBack = null) { this._spaceShip = spaceShip; this._uiCamera = uiCamera; this._type = type; this._endCallBack = endCallBack; this._amountType = amountType; this._mainMenuStage = (spaceShip != null) ? spaceShip.GetComponent <MainMenuStage>() : null; }
private bool OnShowThunderWeatherNotify() { MainMenuStage component = base.view.transform.GetComponent <MainMenuStage>(); ConfigAtmosphereSeries config = ConfigAtmosphereSeries.LoadFromFileAndDetach("Rendering/MainMenuAtmosphereConfig/Lightning"); component.ChooseCloudScene(config, 0); UserLocalDataItem localData = Singleton <MiHoYoGameData> .Instance.LocalData; localData.StartDirtyCheck(); if ((localData.CurrentWeatherConfigPath != "Rendering/MainMenuAtmosphereConfig/Lightning") || (localData.CurrentWeatherSceneID != 0)) { localData.SetDirty(); } localData.CurrentWeatherConfigPath = "Rendering/MainMenuAtmosphereConfig/Lightning"; localData.CurrentWeatherSceneID = 0; if (localData.EndDirtyCheck()) { Singleton <MiHoYoGameData> .Instance.Save(); } return(false); }