예제 #1
0
    /// <summary>
    ///
    /// </summary>
    protected virtual void OnEnable()
    {
        if (FPController != null)
        {
            m_FPControllerAccelerationBak = FPController.MotorAcceleration;
        }

        FPPlayer.Register(this);
    }
예제 #2
0
    /// <summary>
    /// registers this component with the event handler (if any)
    /// </summary>
    protected override void OnEnable()
    {
        if (FPPlayer != null)
        {
            FPPlayer.Register(this);
        }

        RefreshColliders();
    }
예제 #3
0
    /// <summary>
    ///
    /// </summary>
    protected virtual void OnEnable()
    {
        if (FPPlayer != null)
        {
            FPPlayer.Register(this);
        }

        vp_GlobalEvent <Transform, string> .Register("HUDText", OnHUDText);
    }
예제 #4
0
    /// <summary>
    ///
    /// </summary>
    protected virtual void OnEnable()
    {
        if (FPPlayer != null)
        {
            FPPlayer.Register(this);
        }

        m_CurrentShooter   = null;
        VRFirePositionFunc = () => { return(FPCamera.transform.position); };
        VRFireRotationFunc = () => { return(FPCamera.transform.rotation); };

        BackupWeaponSettings();
    }