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