Hi there,
I need to be able to call a function regularly which will move a object to the center of the screen very quickly and then move back to it’s start position. There will be 4 of these objects in total and I need to be able to call each one to move when I say.
So far i’m using Vector3.MoveTowards inside my update function. The problem is this obviously happens automatically on start and only plays once. I’ve thought of creating a if statement to see if the object should be moving, but that would mean constantly enabling and disabling the object at the correct times which seems unnecessary and impractical.
Anybody else have any ideas?