Created
December 21, 2015 05:12
-
-
Save shaunsales/8d2fa0c41e04171d89af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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