예제 #1
0
 /// <summary>
 /// unregisters this component from the event handler (if any)
 /// </summary>
 protected override void OnDisable()
 {
     if (FPPlayer != null)
     {
         FPPlayer.Unregister(this);
     }
 }
예제 #2
0
    /// <summary>
    ///
    /// </summary>
    protected virtual void OnDisable()
    {
        if (FPPlayer != null)
        {
            FPPlayer.Unregister(this);
        }

        RestoreWeaponSettings(CurrentShooter);
    }
예제 #3
0
    /// <summary>
    ///
    /// </summary>
    protected virtual void OnDisable()
    {
        if (FPPlayer != null)
        {
            FPPlayer.Unregister(this);
        }

        vp_GlobalEvent <Transform, string> .Unregister("HUDText", OnHUDText);
    }
예제 #4
0
    /// <summary>
    ///
    /// </summary>
    protected virtual void OnDisable()
    {
        if (m_AppQuitting)
        {
            return;
        }

        if ((m_FPControllerAccelerationBak != 0.0f) && (FPController != null))
        {
            FPController.MotorAcceleration = m_FPControllerAccelerationBak;
        }

        FPPlayer.Unregister(this);
    }