예제 #1
0
 void me_MediaEnded(object sender, EventArgs e)
 {
     if (PlaybackComplete != null)
     {
         PlaybackComplete.Invoke(this, new EventArgs());
     }
 }
예제 #2
0
        /// <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;
        }