Merge remote-tracking branch 'origin/main' into beni

This commit is contained in:
MindfulMinun committed 2022-02-25 19:21:58 -06:00
commit ccb96f4d88
92 files changed
+3537 -107

No files matched your search

+3 -1
View File
@@ -40,7 +40,9 @@ public class PlayerMovement : MonoBehaviour {
if (Movement.pause) {
animator.SetFloat("Horizontal", 0);
} else if (animator != null) {
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
if(controller.m_Grounded) {
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
}
animator.SetBool("Airborne", !controller.m_Grounded);
if (healthBarAnimator != null) {
healthBarAnimator.SetInteger("Health", health.currentHealth);