/// <summary> /// Stops listening for events /// </summary> public virtual void OnDestroy() { _listening = false; MMDebugMenuButtonEvent.Unregister(OnMMDebugMenuButtonEvent); }
/// <summary> /// Stops listening for events /// </summary> public virtual void OnDisable() { MMDebugMenuButtonEvent.Unregister(OnMMDebugMenuButtonEvent); }