public void Play(float start, float end) { AudioClip playClip = audioClip.GetAudioClip(start, end); playClip = AudioClipUtils.SetFadeOutCurve(playClip); audioSource.PlayOneShot(playClip); }
public void SetFadeOutCurve() { clipController.SetFadeOutCurve(); for (int i = 0; i < audioSources.Count; i++) { audioSources[playIndex].clip = clipController.GetAudioClip(); } }