mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
AAAA imma figure this out tomorrow
This commit is contained in:
61 files changed
+1568
-335
No files matched your search
@@ -5,14 +5,17 @@ using UnityEngine;
|
||||
public class PlayerMovement : MonoBehaviour
|
||||
{
|
||||
public Movement controller;
|
||||
float horizontalMove = 0f;
|
||||
public Animator animator;
|
||||
public float runSpeed = 40f;
|
||||
float horizontalMove = 0f;
|
||||
bool jump = false;
|
||||
bool crouch = false;
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
void Update() {
|
||||
|
||||
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
|
||||
|
||||
horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
|
||||
if (Input.GetButtonDown("Jump"))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user