mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
Clouds and Book triggers
This commit is contained in:
1 parent
ea2a88b5ea
commit
38baefcf2d
70 files changed
+2302
-41
No files matched your search
@@ -46,7 +46,9 @@ public class PlayerMovement : MonoBehaviour {
|
||||
if (Movement.pause) {
|
||||
animator.SetFloat("Horizontal", 0);
|
||||
} else if (animator != null) {
|
||||
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
||||
if(controller.m_Grounded) {
|
||||
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
||||
}
|
||||
animator.SetBool("Airborne", !controller.m_Grounded);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user