move around object unity 2d 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);