It looks like you're new here. If you want to get involved, click one of these buttons!
Guys I have a problem,
I try to make o line of code, but this error
CS0104 'Vector2' is an ambiguous reference between 'System.Numerics.Vector2' and 'UnityEngine.Vector2'
PLS HELP ME!!!!!
This is the line of code:
public float speed;
private Rigidbody2D rb;
private Vector2 move_velocity;
rb = GetComponent<Rigidbody2D>();
Vector2 move_input = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"));
move_velocity = move_input * speed;
rb.MovePosition(rb.position + move_velocity * Time.deltaTime);