Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        anim.SetBool("isDashing", controller.IsDashing());
        anim.SetBool("isJumping", controller.IsJumping());
        anim.SetBool("isRunning", controller.IsRunning());
        anim.SetFloat("Velocity", rb.velocity.magnitude);
        anim.SetBool("hasLanded", controller.IsGrounded());
        anim.SetBool("isCarrying", prh.HasRelic());


//		Debug.Log("isDashing : " + controller.IsDashing());
//		Debug.Log("isJumping : " + controller.IsJumping());
//		Debug.Log("isRunning : " + controller.IsRunning());
    }