Commit 1ae31db5 authored by Unknown's avatar Unknown

Animation Character

parent 07278b8a
......@@ -78,7 +78,6 @@ public class MovementController : MonoBehaviour
m_Grounded = false;
Vector3 col = r_Collider.offset;
m_GroundCheck.position = transform.position + col;
GroundCheckDistance = r_Collider.size.y / 2 * transform.localScale.y + 0.2f;
// The player is grounded if a circlecast to the groundcheck position hits anything designated as ground
......@@ -109,9 +108,11 @@ public class MovementController : MonoBehaviour
r_Animator.SetFloat("Speed", m_Movement.magnitude);
r_Animator.SetBool("isJumping", m_Jumped);
r_Animator.SetBool("isGrounded", m_Grounded);
r_Animator.SetBool("isAirborn", m_Airborn);
r_Animator.SetBool("isSwimming", m_Swimming);
//r_Animator.SetBool("isAirCharged", m_isAir);
r_Animator.SetBool("isAirCharged", m_isAir);
r_Animator.SetBool("isCharging", r_State.isCharging);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment