Example #1
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartDefeat();
     }
     else
     {
         StopDefeat();
     }
 }
Example #2
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartMenuSound();
     }
     else
     {
         StopMenuSound();
     }
 }
Example #3
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartAmiente();
     }
     else
     {
         StopAmbiente();
     }
 }
Example #4
0
 private void Start()
 {
     print(UpgradeController.GetSoundStatus());
     if (UpgradeController.GetSoundStatus() == 0)
     {
         StartShopMusic();
     }
     else
     {
         StopShopMusic();
     }
 }
Example #5
0
 private void Start()
 {
     if (UpgradeController.GetSoundStatus() == 0)
     {
         sound.GetComponent <Image>().sprite = unmute;
         StartMenuSound();
     }
     else
     {
         sound.GetComponent <Image>().sprite = mute;
         StopMenuSound();
     }
 }
Example #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();
     }
 }