bug fixes

This commit is contained in:
Rizvee
2022-02-24 23:29:37 -06:00
parent 1978ce2d7a
commit 276e36244d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -36,6 +36,7 @@ public class Movement : MonoBehaviour
private void Awake()
{
pause = false;
m_Rigidbody2D = GetComponent<Rigidbody2D>();
if (OnLandEvent == null)
+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);
}