Example #1
0
 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");
 }
Example #2
0
 public void AbrirSelecaoFase()
 {
     MenuCanvas.SetActive(false);
     SelecaoFaseCanvas.SetActive(true);
 }
Example #3
0
 public void RetornarAoMenuPrincipal()
 {
     ConfiguracoesCanvas.SetActive(false);
     SelecaoFaseCanvas.SetActive(false);
     MenuCanvas.SetActive(true);
 }