private void Awake() { Debug.Log("SyncGameController: Awake"); tickCount = 0; Time.timeScale = 1f; if (Instance != null) { Destroy(Instance); } Instance = this; if (UserData.Instance != null) { UserData.Instance.IsGameOver = false; UserData.Instance.IsGameStarted = false; UserData.Instance.IsUnityAppPaused = false; } if (!Application.isEditor) { Debug.Log("Disabling Debug Logging in non-editor build..."); Debug.unityLogger.logEnabled = false; } }
private void OnDestroy() { Instance = null; }