音频回调与音效音量初始化问题解决
This commit is contained in:
@@ -66,9 +66,8 @@ namespace Stary.Evo.AudioCore
|
||||
private IEnumerator PlayVoiceCoroutine(AudioSource source, float delayOnComplete, System.Action onComplete)
|
||||
{
|
||||
yield return new WaitForSeconds(source.clip.length + delayOnComplete);
|
||||
|
||||
onComplete?.Invoke();
|
||||
audioSourcePool.ReturnAudioSource("Voice", source.gameObject);
|
||||
onComplete?.Invoke();
|
||||
currentSource = null;
|
||||
myCoroutine = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user