public void Play(float start, float end)
    {
        AudioClip playClip = audioClip.GetAudioClip(start, end);

        playClip = AudioClipUtils.SetFadeOutCurve(playClip);
        audioSource.PlayOneShot(playClip);
    }
Exemple #2
0
    public void SetFadeOutCurve()
    {
        clipController.SetFadeOutCurve();

        for (int i = 0; i < audioSources.Count; i++)
        {
            audioSources[playIndex].clip = clipController.GetAudioClip();
        }
    }