[ANSWERED]Move object without Update or coroutine

Ok so i am aware there are a number of ways to smooth move an object from point A to point B either through the Update() or using a coroutine. But as for discovering a way to do this without either of these is proving to be somewhat problematic. I came across this but could not get it working at all. Usually I would use a coroutine but in this case my specifications state otherwise. Does anyone out there have a solution or a link to a script reference I can investigate?

What about an animation? If you know point A and point B you can just create it procedurally by code.

[EDIT] I’ve done it before, all you need to check is AnimationClip , SetCurve and AnimationCurve in the docs.

There’s no reason you can’t use Update. You just need some flag to trigger the movement (and the flag being set by the swipe made by the user). Inside your update you can check the flag, if it’s true, then move. The end of the movement sets it back to false.

It’s a problem of the logic used to trigger the movement, not the method used to move the object.