Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
 private void SaveResolutionToPrefs()
 {
     GraphicsOptionsScreen.OnResize();
 }