Пример #1
0
    private void show()
    {
        preTimeScale   = Time.timeScale;
        Time.timeScale = 0;
        AudioListener aux = cam.GetComponent <AudioListener>();

        Debug.Assert(aux != null);

        AudioListener.pause = true;


        foreach (Transform child in this.gameObject.transform)
        {
            child.gameObject.SetActive(true);
        }

        CamLook comprovant = cam.GetComponent <CamLook>();

        Debug.Assert(comprovant != null);
        comprovant.DesfixarCursor();
    }