Example #1
0
 public void TogglePause()
 {
     if (!gameObject.active)
     {
         soundManager.MenuSound();
         androidButtons.Hide();
     }
     else
     {
         soundManager.GameSound();
         androidButtons.Show();
     }
     gameObject.SetActive(!gameObject.active);
 }
Example #2
0
 public void Dead()
 {
     gameObject.SetActive(true);
     androidButtons.Hide();
     soundManager.MenuSound();
 }