private ApplyChanges ( IList |
||
enabled | IList |
|
Résultat | void |
static void Update() { bool refresh = false; if (EditorUserBuildSettings.development != isDevelopment) { isDevelopment = EditorUserBuildSettings.development; refresh = true; } if (EditorPrefs.GetBool(NetworksWindow.PREFS_DEBUG) != isDebugNotifications) { isDebugNotifications = EditorPrefs.GetBool(NetworksWindow.PREFS_DEBUG); refresh = true; } #if UNITY_5_5_OR_NEWER var newVersion = PlayerSettings.iOS.targetOSVersionString.ToString(); #elif UNITY_5_OR_NEWER var newVersion = PlayerSettings.iOS.targetOSVersionString.ToString().Substring(4).Replace('_', '.'); #else var newVersion = PlayerSettings.iOS.targetOSVersion.ToString().Substring(4).Replace('_', '.'); #endif if (!newVersion.Equals(iosMinTargetVersion)) { iosMinTargetVersion = newVersion; refresh = true; } if (refresh) { Networks instance = new AndroidNetworks(true); instance.ApplyChanges(instance.GetPersisted()); instance = new IosNetworks(); instance.ApplyChanges(instance.GetPersisted()); } }
static AndroidNetworks() { var instance = new AndroidNetworks(false); instance.ApplyChanges(instance.GetPersisted()); }