Ejemplo n.º 1
0
    private void OnEnable()
    {
        // We want to add the jump functionality of this class to the character controller.
        characterController = GetComponentInParent <PlayerCharacterController>();
        characterController.calculateWallJumpVelocity += CalculateWallJumpVelocity;

        playerBody = characterController.gameObject.GetComponent <Rigidbody>();

        jumpInputManager = GetComponent <JumpInputManager>();

        Physics.gravity = new Vector3(0, standardGravityAugment, 0);
    }