Exemplo n.º 1
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartDefeat();
     }
     else
     {
         StopDefeat();
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartMenuSound();
     }
     else
     {
         StopMenuSound();
     }
 }
Exemplo n.º 3
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartAmiente();
     }
     else
     {
         StopAmbiente();
     }
 }
Exemplo n.º 4
0
 private void Start()
 {
     print(UpgradeController.GetSoundStatus());
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartShopMusic();
     }
     else
     {
         StopShopMusic();
     }
 }
Exemplo n.º 5
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         sound.GetComponent <Image>().sprite = unmute;
         StartMenuSound();
     }
     else
     {
         sound.GetComponent <Image>().sprite = mute;
         StopMenuSound();
     }
 }
Exemplo n.º 6
0
 public void ToggleSound()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         sound.GetComponent <Image>().sprite = mute;
         UpgradeController.SetSoundStatus(1);
         StopMenuSound();
     }
     else
     {
         sound.GetComponent <Image>().sprite = unmute;
         UpgradeController.SetSoundStatus(0);
         StartMenuSound();
     }
 }