Exemplo n.º 1
0
    private void Awake()
    {
        AudioClip   adjustedAudioClip = audioClip.CreateSpeakerSpecificClip(1, channel_index);
        AudioSource audioSource       = GetComponent <AudioSource>();

        audioSource.clip = adjustedAudioClip;
    }
 public void UpdateSound(Vector3[] channels) =>
 audioSource.clip =
     originalSound.CreateSpeakerSpecificClip(channels.Length,
                                             Tools.CalculateVolumes(channels, audioSource));