mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
hehe forgor to push double jump memes
This commit is contained in:
1 parent
70cbc01c25
commit
4c7900d435
5 files changed
+33
-22
No files matched your search
@@ -5,7 +5,7 @@ using UnityEngine;
|
||||
public class PlayerMovement : MonoBehaviour
|
||||
{
|
||||
public Movement controller;
|
||||
public Animator animator;
|
||||
//public Animator animator;
|
||||
public float runSpeed = 40f;
|
||||
float horizontalMove = 0f;
|
||||
bool jump = false;
|
||||
@@ -14,7 +14,7 @@ public class PlayerMovement : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update() {
|
||||
// Horizontal value is for the animation state machine. No code required, wow!
|
||||
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
||||
//animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
||||
|
||||
horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
|
||||
|
||||
|
||||
Reference in new issue
Block a user