I am working on a game app with Unity. I have an issue when it comes to move a GameObject .
In my game, when the player swipes up with his device, the GameObject moves f
Here is how to use MoveTowards:
MoveTowards
void Update() { float step = speed * Time.deltaTime; transform.position = Vector3.MoveTowards(transform.position, PositionB, step); }
LearnMore