/// <summary> /// unregisters this component from the event handler (if any). /// NOTE: this is overriden by vp_FPPlayerEventHandler /// </summary> protected override void OnDisable() { if (Player != null) { Player.Unregister(this); } }
/// <summary> /// /// </summary> protected virtual void OnDisable() { // unregister this monobehaviour from the player event handler if (m_Player != null) { m_Player.Unregister(this); } }