bug fixes

This commit is contained in:
Rizvee committed 2022-02-24 23:29:37 -06:00
1 parent 1978ce2d7a
commit 276e36244d
2 files changed
+2 -1

No files matched your search

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