Skip to content

Instantly share code, notes, and snippets.

@shaunsales
Created December 21, 2015 05:12
Show Gist options
  • Save shaunsales/8d2fa0c41e04171d89af to your computer and use it in GitHub Desktop.
Save shaunsales/8d2fa0c41e04171d89af to your computer and use it in GitHub Desktop.
private IEnumerator Start()
{
ScreenFader.Instance.FadeToBlack(instant: true);
#if UNITY_IOS
UnityEngine.iOS.NotificationServices.RegisterForNotifications(UnityEngine.iOS.NotificationType.Alert);
#endif
DebugLog = new LimitedQueue<DebugMessage>(Settings.Global.DebugLogLimit);
Application.targetFrameRate = 60;
QualitySettings.vSyncCount = 1;
Application.runInBackground = true;
// Wait a frame so other managers can init themselves (particulaly WebClient)
yield return new WaitForEndOfFrame();
SetWebApiEnvironment();
// Setup language localization
ApplicationDataManager.DefaultLanguage = GetLanguageLocale();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment