Ejemplo n.º 1
0
    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;
        }
    }
Ejemplo n.º 2
0
 private void OnDestroy()
 {
     Instance = null;
 }