public void ChooseAtmosphereSeriesRandomly() { ConfigAtmosphereSeries config = ConfigAtmosphereSeries.LoadFromFileAndDetach(AtmosphereSeriesData.GetPathRandomly()); int sceneIdRandomly = config.GetSceneIdRandomly(); this.ChooseCloudScene(config, sceneIdRandomly); }
public void ChooseAtmosphereSeriesDefault() { string str = "Rendering/MainMenuAtmosphereConfig/Default"; bool flag = Singleton <PlayerModule> .Instance.playerData.userId != 0; string path = !flag ? str : Singleton <MiHoYoGameData> .Instance.LocalData.CurrentWeatherConfigPath; ConfigAtmosphereSeries config = ConfigAtmosphereSeries.LoadFromFileAndDetach(path); int sceneId = !flag ? 0 : Singleton <MiHoYoGameData> .Instance.LocalData.CurrentWeatherSceneID; this.ChooseCloudScene(config, sceneId); }