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

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

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

        vp_GlobalEvent <Transform, string> .Register("HUDText", OnHUDText);
    }
Beispiel #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();
    }