/// <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); }
/// <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); } }