mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
bug fixes
This commit is contained in:
1 parent
1978ce2d7a
commit
276e36244d
2 files changed
+2
-1
No files matched your search
@@ -36,6 +36,7 @@ public class Movement : MonoBehaviour
|
|||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
pause = false;
|
||||||
m_Rigidbody2D = GetComponent<Rigidbody2D>();
|
m_Rigidbody2D = GetComponent<Rigidbody2D>();
|
||||||
|
|
||||||
if (OnLandEvent == null)
|
if (OnLandEvent == null)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class PlayerMovement : MonoBehaviour
|
|||||||
crouch = false;
|
crouch = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (animator != null) {
|
if (animator != null && !Movement.pause) {
|
||||||
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
||||||
animator.SetBool("Airborne", !controller.m_Grounded);
|
animator.SetBool("Airborne", !controller.m_Grounded);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user