if (Input.GetMouseButton(0))
{
Vector3 mousePosition = MainCamera.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, MainCamera.transform.position.y));
_rb.MovePosition(new Vector3(mousePosition.x, 0.0f, mousePosition.z));
}