void me_MediaEnded(object sender, EventArgs e) { if (PlaybackComplete != null) { PlaybackComplete.Invoke(this, new EventArgs()); } }
/// <summary> /// Executes responsibilities due at playback completion /// </summary> private void DoStopped() { if (_isWaiting) { throw new InvalidOperationException("Playback completion handling cannot execute. Active playback still registered."); } PlaybackComplete?.Invoke(this); _currentCallback?.Invoke(_currentSound); _currentCallback = null; _currentCoroutine = null; _currentSound = GameSound.None; }