How to move gameobject by The screen dragging finger In mobile games?

I have a problem with dragging an object on the scene by clicking and holding with my finger, does anyone have any ideas how to fix this, or is there some kind of universal script. In the drawing in the screenshot, the object moves, but the location changes when you click it again in another place on the screen … I will be grateful for any help. sorry for english