Exemple #1
0
        /// <summary>
        /// stops the audio clip, fires the completionHandler if necessary and recycles the SKSound
        /// </summary>
        public void stop()
        {
            audioSource.Stop();

            if (_completionHandler != null)
            {
                _completionHandler();
                _completionHandler = null;
            }

            _manager.recycleSound(this);
        }
Exemple #2
0
        /// <summary>
        /// stops the audio clip, fires the completionHandler if necessary and recycles the SKSound
        /// </summary>
        public void stop()
        {
            audioSource.Stop();

            if (_completionHandler != null)
            {
                _completionHandler();
                _completionHandler = null;
            }

            if (this != this._manager.backgroundSound)
            {
                _manager.recycleSound(this);
            }
        }