public void AbrirConfiguracoes() { MenuCanvas.SetActive(false); ConfigAudioCanvas.SetActive(false); ConfigNaveCanvas.SetActive(false); ConfiguracoesCanvas.SetActive(true); }
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 AbrirConfigAudio() { ConfiguracoesCanvas.SetActive(false); ConfigAudioCanvas.SetActive(true); }