Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     AnimationManager();
     if (uiController.ActiveInventory())
     {
         controller.MovePosition(transform.position);
     }
     else
     {
         MovementManager();
         RotationManager();
     }
 }
// Update is called once per frame
    void Update()
    {
        AnimationManager();
        if (uiController.ActiveInventory() || activeTutorial)
        {
            moveDirection.x = 0;
            moveDirection.z = 0;
            charController.Move(moveDirection * Time.deltaTime);
        }
        else
        {
            MovementManager();
            RotationManager();
        }
        RayCastGrounded();
    }