Beispiel #1
0
 public static FadeSystem GetFadeSystem()
 {
     if (GreenHellGame.m_FadeSystem == null)
     {
         GreenHellGame.CreateFadeSystem();
     }
     return(GreenHellGame.m_FadeSystem);
 }
 private void Initialize()
 {
     GreenHellGame.ROADSHOW_DEMO  = File.Exists(Application.dataPath + "/Resources/scripts/Debug/ROADSHOW_DEMO");
     GreenHellGame.DEBUG          = File.Exists(Application.dataPath + "/Resources/scripts/Debug/DEBUG");
     GreenHellGame.TWITCH_DEMO    = File.Exists(Application.dataPath + "/Resources/scripts/Debug/TWITCH_DEMO");
     GreenHellGame.FORCE_SURVIVAL = File.Exists(Application.dataPath + "/Resources/scripts/Debug/FORCE_SURVIVAL");
     GreenHellGame.GAMESCOM_DEMO  = File.Exists(Application.dataPath + "/Resources/scripts/Debug/GAMESCOM_DEMO");
     this.InitializeSteam();
     this.InitializeRemoteStorage();
     this.TryToMoveSavesToRemoteStorage();
     this.TryToMoveSettingsToRemoteStorage();
     this.InitInputsManager();
     this.InitAudioMixer();
     this.m_Settings = base.gameObject.AddComponent <GameSettings>();
     this.m_Settings.LoadSettings();
     this.SetMaxDeltaTime();
     this.InitMusic();
     this.InitPrefabsMap();
     this.CreateLocalization();
     this.InitializeLoadingScreen();
     if (GreenHellGame.m_FadeSystem == null)
     {
         GreenHellGame.CreateFadeSystem();
     }
     if (GreenHellGame.m_YesNoDialog == null)
     {
         GreenHellGame.CreateYesNoDialog();
     }
     if (GreenHellGame.m_LocalReplaceManager == null)
     {
         GreenHellGame.CreateLocalizationReplaceManager();
     }
     if (base.gameObject.scene.IsValid())
     {
         SceneManager.MoveGameObjectToScene(base.gameObject, SceneManager.GetActiveScene());
     }
     CursorManager.Initialize();
     CursorManager.Get().ShowCursor(false, false);
     this.InitializeChallengesManager();
     this.m_Settings.ApplySettings(false);
     this.InitScenarioScenes();
     this.m_SessionJoinHelper = base.gameObject.AddComponent <SessionJoinHelper>();
 }