IEnumerator MoveDriver(TransformController transformController, float position, float startTime) { yield return(new WaitForSeconds(startTime)); transformController.AbsoluteDisplacement(position); }
// move without a coroutine, motion starts immediately private void MoveNow(TransformController transformController, float position) { transformController.AbsoluteDisplacement(position); }