Exemplo n.º 1
0
    public void Pause()
    {
        mButtons = GameObject.Find ("SoundButton").GetComponent<Buttons>();
        if (!mIsPaused) {
            Time.timeScale = 0;
            mButtons.ShowMenu(true);
            mIsPaused = true;

        }
        else
        {
            mButtons.ShowMenu(false);
            mIsPaused = false;
            Time.timeScale = 1;
        }
    }