Esempio n. 1
0
 public void EffectOnOrClose()
 {
     if (!gameObject.GetComponent <Enemy2>() && !gameObject.GetComponent <Enemy5>())
     {
         gameObject.GetComponent <AudioSource>().volume = PlayerPrefsController.GetMasterEffectInt();
     }
 }
Esempio n. 2
0
 public void EffectOnOrClose()
 {
     if (gameObject.tag != "Stone")
     {
         gameObject.GetComponent <AudioSource>().volume = PlayerPrefsController.GetMasterEffectInt();
     }
 }
Esempio n. 3
0
 public void EffectOnOrClose()
 {
     gameObject.GetComponents <AudioSource>()[0].volume = PlayerPrefsController.GetMasterEffectInt();
     gameObject.GetComponents <AudioSource>()[1].volume = PlayerPrefsController.GetMasterEffectInt();
 }