Exemple #1
0
    public static void PlayWaterSound()
    {
        WaterSound soundSource = GameObject.FindObjectOfType <WaterSound>();

        soundSource.GetComponent <AudioSource>().volume = soundEffectVolume * 0.5f;
        soundSource.GetComponent <AudioSource>().Play();
    }
Exemple #2
0
 public SoundStrategy_Water()
 {
     this._Sound = WaterSound.GetInstance();
 }