mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
NPC AI
This commit is contained in:
1 parent
e62fe6ec5f
commit
14c81c67d6
9 files changed
+1376
-43
No files matched your search
@@ -24,7 +24,10 @@ public class PlayerMovement : MonoBehaviour
|
||||
} else if (Input.GetKeyUp(KeyCode.LeftShift)) {
|
||||
crouch = false;
|
||||
}
|
||||
|
||||
|
||||
if(Movement.pause) {
|
||||
animator.SetFloat("Horizontal", 0);
|
||||
}
|
||||
if (animator != null && !Movement.pause) {
|
||||
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
||||
animator.SetBool("Airborne", !controller.m_Grounded);
|
||||
|
||||
Reference in new issue
Block a user