public void Unsubscribe(ActiveCallbacks _activeCallbacks) { if (_activeCallbacks == activeCallbacks) { activeCallbacks = null; } }
/// <summary> /// Set the CurrentCallbacks to make the Audioloop always looping /// </summary> /// <param name="_activeCallbacks">The callback method to call every single frame</param> public void SetCallbacks(ActiveCallbacks _activeCallbacks) { activeCallbacks = _activeCallbacks; }
public void Unsubscribe() { activeCallbacks = null; enabled = false; }