Exemplo n.º 1
0
 public void OnMusicToggle()
 {
     User.Instance.Sound = !User.Instance.Sound;
     if (User.Instance.Sound)
     {
         musicOn.gameObject.SetActive(true);
         musicOff.gameObject.SetActive(false);
     }
     else
     {
         musicOn.gameObject.SetActive(false);
         musicOff.gameObject.SetActive(true);
     }
     GameInfo.isSoundOn = User.Instance.Sound;
     gameAudio.ButtonBeepPop();
 }
Exemplo n.º 2
0
 public void MoveGameScene()
 {
     gameAudio.ButtonBeepPop();
     SceneManager.LoadScene("Game");
 }
Exemplo n.º 3
0
 private void BackBtn_backBtn()
 {
     gameaudio.ButtonBeepPop();
     SceneManager.LoadScene("Main");
 }