void TestSound(SFXClip clip) { if (sound_object != null) { clip.PlaySound(sound_object); } }
public void SetSFXVolume(Slider slider) { float old = sfx_volume; sfx_volume = slider.value; instance.SetAllVolumes(music_volume, sfx_volume); if (sfx_volume != old) { change_sfx_volume_clip.PlaySound(sfx); } }