Beispiel #1
0
 private static void CheckGlobalInit()
 {
     if (!Root.globalInitDone)
     {
         UnityDataInitializer.CopyUnityData();
         SteamManager.InitIfNeeded();
         string[] commandLineArgs = Environment.GetCommandLineArgs();
         if (commandLineArgs != null && commandLineArgs.Length > 1)
         {
             Log.Message("Command line arguments: " + GenText.ToSpaceList(commandLineArgs.Skip(1)), false);
         }
         VersionControl.LogVersionNumber();
         Application.targetFrameRate = 60;
         Prefs.Init();
         if (Prefs.DevMode)
         {
             StaticConstructorOnStartupUtility.ReportProbablyMissingAttributes();
         }
         if (Root.< > f__mg$cache0 == null)
         {
             Root.< > f__mg$cache0 = new Action(StaticConstructorOnStartupUtility.CallAll);
         }
         LongEventHandler.QueueLongEvent(Root.< > f__mg$cache0, null, false, null);
         Root.globalInitDone = true;
     }
 }
Beispiel #2
0
 private static void CheckGlobalInit()
 {
     if (!globalInitDone)
     {
         string[] commandLineArgs = Environment.GetCommandLineArgs();
         if (commandLineArgs != null && commandLineArgs.Length > 1)
         {
             Log.Message("Command line arguments: " + GenText.ToSpaceList(commandLineArgs.Skip(1)));
         }
         PerformanceReporting.enabled = false;
         Application.targetFrameRate  = 60;
         UnityDataInitializer.CopyUnityData();
         SteamManager.InitIfNeeded();
         VersionControl.LogVersionNumber();
         Prefs.Init();
         if (Prefs.DevMode)
         {
             StaticConstructorOnStartupUtility.ReportProbablyMissingAttributes();
         }
         LongEventHandler.QueueLongEvent(StaticConstructorOnStartupUtility.CallAll, null, doAsynchronously: false, null);
         globalInitDone = true;
     }
 }