im following a brackeys tutorial and my code is identical apart from variable names but im getting the above error
public float go = 5;
public Rigidbody2D rb;
Vector2 move;
// Update is called once per frame
void Update()
{
move.x = Input.GetAxisRaw("Horizontal");
move.y = Input.GetAxisRaw("Vertical");
}
void FixedUpdate()
{
rb.MovePosition(rb.position + move + go * Time.deltaTime);
↧