Пример #1
0
    private IEnumerator FinishedPlaying(float clipLength)
    {
        yield return(new WaitForSeconds(clipLength));

        OnSoundFinishedPlaying.Invoke(this);
    }
Пример #2
0
    IEnumerator FinishedPlaying(float clipLength)
    {
        yield return(new WaitForSeconds(clipLength));

        OnSoundFinishedPlaying.Invoke(this);         // The AudioManager will pick this up
    }
Пример #3
0
 private void NotifyBeingDone()
 {
     OnSoundFinishedPlaying.Invoke(this);         // The AudioManager will pick this up
 }