Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Awake()
    {
        Time.timeScale = 1f;
        isPaused       = false;

        gc = GameControllerCommon.instance;
    }
Ejemplo n.º 2
0
    public void Awake()
    {
        if (instance != null)
        {
            Debug.Log("Another GameController already exists, deleting this one.");
            Destroy(this.gameObject);
        }
        else
        {
            Debug.Log(this.gameObject + " has been set as local GameController instance.");
            instance = this;
        }

        PauseMenu.isPaused = false;
    }