Exemple #1
0
    void Update()
    {
        isInteracting = anim.GetBool(PlayerAnimatorHandler.hashIsInteracting);
        canCombo      = anim.GetBool(PlayerAnimatorHandler.hashCanCombo);
        anim.SetBool(PlayerAnimatorHandler.hashIsAirborne, isAirborne);

        float delta = Time.deltaTime;

        inputHandler.TickInput(delta);
        locomotion.HandleRollingAndSprinting(delta);
        locomotion.HandleJumping();

        CheckForInteractableObject();
    }
    //salto estatico
    private void HandleJumpingInput()
    {
        if (tutorial != null)
        {
            if (tutorial.isJumping == false)
            {
                return;
            }
        }


        if (jump_Input)
        {
            jump_Input = false;
            //playerLocomotion.HandleJump();
            rodySoundsManager.prepararSonido(2);
            playerLocomotion.HandleJumping();
        }
    }
Exemple #3
0
    // Update is called once per frame
    void Update()
    {
        float delta = Time.deltaTime;

        isInteracting    = anim.GetBool("isInteracting");    //restructure error for later
        canDoCombo       = anim.GetBool("canDoCombo");
        isUsingRightHand = anim.GetBool("isUsingRightHand"); // both are for weapon stuff
        isUsingLeftHand  = anim.GetBool("isUsingLeftHand");
        anim.SetBool("isInAir", isInAir);                    // jump stuff
        isFiring = anim.GetBool("isFiring");


        inputHandler.TickInput(delta);
        playerLocomotion.HandleRollAndSprint(delta); //dodge stuff
        playerLocomotion.HandleJumping();            // jump stuff

        playerStats.StaminaRegen();

        CheckForInteractable();
    }