I have an error CS1003: Syntax error, ‘,’ expected. this is my script and please let me know how to fix this.
private void Update()
{
body.velocity = new Vector2(Input.GetAxis("Horizontal") * speed, body.velocity.y);
if (Input.GetKey(KeyCode.Space))
body.velocity = new Vector2(body.velocity.x speed);
}