mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
bug fixes
This commit is contained in:
@@ -36,6 +36,7 @@ public class Movement : MonoBehaviour
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
pause = false;
|
||||
m_Rigidbody2D = GetComponent<Rigidbody2D>();
|
||||
|
||||
if (OnLandEvent == null)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user