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