/// <summary> /// unregisters this component from the event handler (if any) /// </summary> protected override void OnDisable() { if (FPPlayer != null) { FPPlayer.Unregister(this); } }
/// <summary> /// /// </summary> protected virtual void OnDisable() { if (FPPlayer != null) { FPPlayer.Unregister(this); } RestoreWeaponSettings(CurrentShooter); }
/// <summary> /// /// </summary> protected virtual void OnDisable() { if (FPPlayer != null) { FPPlayer.Unregister(this); } vp_GlobalEvent <Transform, string> .Unregister("HUDText", OnHUDText); }
/// <summary> /// /// </summary> protected virtual void OnDisable() { if (m_AppQuitting) { return; } if ((m_FPControllerAccelerationBak != 0.0f) && (FPController != null)) { FPController.MotorAcceleration = m_FPControllerAccelerationBak; } FPPlayer.Unregister(this); }