Exemple #1
0
    public void RequestNewAudioSource(AUDIO_SOURCE_TYPE audioSourceType, AudioClip targetAudioClip)
    {
        if (targetAudioClip != null)
        {
            AudioSourceController newAudioSourceController = ReturnNewAudioSourceController(audioSourceType);

            newAudioSourceController.LoadNewAudioData(audioSourceType, targetAudioClip);

            newAudioSourceController.StartClip();

            AddNewActiveAudioSource(newAudioSourceController);
        }
    }