Пример #1
0
    void FixedUpdate()
    {
        float delta = Time.fixedDeltaTime;

        locomotion.HandleMovement(delta);
        locomotion.HandleFalling(delta, locomotion.moveDirection);
    }
Пример #2
0
    private void FixedUpdate()
    {
        float delta = Time.fixedDeltaTime;

        playerLocomotion.HandleMovement(delta);
        playerLocomotion.HandleFalling(delta, playerLocomotion.moveDirection);
    }
Пример #3
0
    void Update()
    {
        float delta = Time.deltaTime;

        isInteracting = anim.GetBool("isInteracting");
        canDoCombo    = anim.GetBool("canDoCombo");

        inputHandler.TickInput(delta);                     // -> primeroo se leen los imput que se utilizan luego los movimientos....
        playerLocomotion.HandleRollingAndSprinting(delta); //IMPORTANTE -> SPRINT y JUMP ACA.
                                                           //manejadores/inicializador de movimiento
        playerLocomotion.HandleMovement(delta);
        playerLocomotion.HandleFalling(delta, playerLocomotion.moveDirection);
        playerStats.RegenerateStamina(); // regeneracion de stamina
        //interactable objects
        CheckForInteractableObject();
    }