예제 #1
0
 void TestSound(SFXClip clip)
 {
     if (sound_object != null)
     {
         clip.PlaySound(sound_object);
     }
 }
예제 #2
0
    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);
        }
    }