i followed all of brackeys steps on how to create and move a character, and there are no obvious problems like errors or stuff in the console, please help
none of the inputs work,i followed brackeys tutorial and i followed all the steps, there are no obvious coding errors and none in the console, please help
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour {
public CharacterController2D controller;
public float runSpeed = 40f;
float horizontalMove1 = 40f;
bool Jump = false;
bool Crouch = false;
// Update is called once per frame
void Update()
{
horizontalMove1 = Input.GetAxisRaw("Horizontal") * runSpeed;
if (Input.GetButtonDown("Jump"))
{
Jump = true;
}
if (Input.GetButtonDown("Crouch"))
{
Crouch = true;
}
else if (Input.GetButtonDown("Crouch"))
{
Crouch = false;
}
}
void FixedUpdate()
{
controller.Move(horizontalMove1 * Time.fixedDeltaTime, false, Jump);
Jump = false;
}
}