Пример #1
0
 private void Update()
 {
     if (numWaitFrames <= Time.renderedFrameCount)
     {
         if (!SystemInfo.SupportsTextureFormat(TextureFormat.RGBAFloat))
         {
             Debug.LogError("Machine does not support RGBAFloat32");
         }
         GraphicsOptionsScreen.SetResolutionFromPrefs();
         Util.ApplyInvariantCultureToThread(Thread.CurrentThread);
         Debug.Log("release Build: LU-" + 365655.ToString());
         UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
         KPlayerPrefs.instance.Load();
         KFMOD.Initialize();
         for (int i = 0; i < SpawnPrefabs.Length; i++)
         {
             GameObject gameObject = SpawnPrefabs[i];
             if ((UnityEngine.Object)gameObject != (UnityEngine.Object)null)
             {
                 Util.KInstantiate(gameObject, base.gameObject, null);
             }
         }
         DeleteLingeringFiles();
         base.enabled = false;
     }
 }
Пример #2
0
 private void SaveResolutionToPrefs()
 {
     GraphicsOptionsScreen.OnResize();
 }