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