I looked at the code and found where i think the error was but its still popping up
here is the code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class move : MonoBehaviour
{
public Rigidbody2D rb;
public float movespeed;
public float jumpheight;
public bool grounded;
public Transform groundcheck;
public layermask groundlayer;
public void Update(){
grounded = overlapcircle(groundcheck.position, .2f, groundlayer);
rb.velocity = new vector2(input.getaxis("horizontal") * movespeed * Time.deltaTime, rb.velocity.y);
if (grounded) {
if (input.GetKeyDown(KeyCode.UpArrow)){
rb.addforce(new vector2(0, jumpHeight), ForceMode2D.impulse);
}
}
}
}
please help!!