Esempio n. 1
0
 private void Awake()
 {
     Application.targetFrameRate = targetFrameRate;
     UnityMonoDriver.s_instance  = this;
     if (base.transform.parent != null)
     {
         DontDestroyOnLoad(base.transform.parent);
     }
     uiManager.Init();
 }
 private void Awake()
 {
     Application.targetFrameRate = 30;
     Application.runInBackground = true;
     Screen.sleepTimeout         = SleepTimeout.NeverSleep;
     UnityMonoDriver.s_instance  = this;
     if (base.transform.parent != null)
     {
         DontDestroyOnLoad(base.transform.parent);
     }
     InvokeRepeating("Tick", 0f, 0.01f);
     clientGameStateManager.m_oClientStateMachine.Init();
     sdkManager.Init();
     AdsManager.singleton.Init();
 }