unity 2d move object code example
Example: move gameobject in unity 2d
transform.position = new Vector3(transform.position.x + movespeed, transform.position.y);
transform.position = new Vector3(transform.position.x + movespeed, transform.position.y);