This commit is contained in:
Rizvee committed 2022-02-25 01:00:32 -06:00
1 parent e62fe6ec5f
commit 14c81c67d6
9 files changed
+1376 -43

No files matched your search

+4 -1
View File
@@ -24,7 +24,10 @@ public class PlayerMovement : MonoBehaviour
} else if (Input.GetKeyUp(KeyCode.LeftShift)) {
crouch = false;
}
if(Movement.pause) {
animator.SetFloat("Horizontal", 0);
}
if (animator != null && !Movement.pause) {
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
animator.SetBool("Airborne", !controller.m_Grounded);