コード例 #1
0
 // Set reverb amount based on the distance from the reverb zone
 public static void SetReverb(FMOD.Studio.ParameterInstance soundEventReverb, GameObject soundSource)
 {
     float distance = Vector3.Distance(soundSource.transform.position, caveVerbZone.transform.position);
     soundEventReverb.setValue(distance);
 }