private void Start() { AC = FindObjectOfType(typeof(AudioController)) as AudioController; MenuCanvas = GameObject.Find("MenuCanvas"); ConfiguracoesCanvas = GameObject.Find("ConfiguracoesCanvas"); ConfigAudioCanvas = GameObject.Find("ConfiguracoesAudioCanvas"); ConfigNaveCanvas = GameObject.Find("ConfiguracoesNaveCanvas"); SelecaoFaseCanvas = GameObject.Find("SelecaoFaseCanvas"); ConfiguracoesCanvas.SetActive(false); ConfigAudioCanvas.SetActive(false); ConfigNaveCanvas.SetActive(false); SelecaoFaseCanvas.SetActive(false); volumeSlider.value = PlayerPrefs.GetFloat("Volume"); }
public void AbrirSelecaoFase() { MenuCanvas.SetActive(false); SelecaoFaseCanvas.SetActive(true); }
public void RetornarAoMenuPrincipal() { ConfiguracoesCanvas.SetActive(false); SelecaoFaseCanvas.SetActive(false); MenuCanvas.SetActive(true); }