Exemple #1
0
 void updateValue()
 {
     PrefsHelper.setVolume(type, slider.value);
     if (onChangeSource != null)
     {
         onChangeSource.Stop();
         if (queueChange)
         {
             onChangeSource.PlayOneShot(onChangeClip, PrefsHelper.getVolume(type));
         }
     }
     queueChange = false;
 }