Пример #1
0
        public void ChooseAtmosphereSeriesRandomly()
        {
            ConfigAtmosphereSeries config = ConfigAtmosphereSeries.LoadFromFileAndDetach(AtmosphereSeriesData.GetPathRandomly());
            int sceneIdRandomly           = config.GetSceneIdRandomly();

            this.ChooseCloudScene(config, sceneIdRandomly);
        }
Пример #2
0
        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);
        }