Exemplo n.º 1
0
        void GameSceneActive()
        {
            if (PluginConfig.Instance.WeatherFinder.enabled)
            {
                BundleLoader.LoadWeatherFinder();
            }

            WeatherSceneInfo.CurrentScene = SceneManager.GetSceneByName(game);
            BundleLoader.WeatherPrefab.GetComponent <WeatherSceneInfo>().SetActiveRefs();
        }
Exemplo n.º 2
0
 void SceneChanged(Scene scene, Scene arg2)
 {
     Log.Info(scene.name + " " + arg2.name);
     if (arg2.name == "HealthWarning" && !hasEmptyTransitioned)
     {
         hasEmptyTransitioned = true;
         BundleLoader.Load();
     }
     if (!hasEmptyTransitioned && arg2.name == "EmptyTransition")
     {
         hasEmptyTransitioned = true;
         BundleLoader.Load();
     }
     if (arg2.name == menu)
     {
         Log.Debug(menu);
         MenuSceneActive();
     }
     if (arg2.name == game)
     {
         GameSceneActive();
     }
 }