how to make a object move to the right always in unity code example
Example: how to make an object move towards another in unity
transform.position = Vector3.MoveTowards(transform.position, taretPos, Qiaternion.identiy)
transform.position = Vector3.MoveTowards(transform.position, taretPos, Qiaternion.identiy)