public static Tween DOMove(this Transform transform, Vector3 target, float duration) { MonoBehaviour mono = transform.GetComponent <MonoBehaviour>(); Tween tween = new Tween(transform, target, duration); Coroutine coroutine = mono.StartCoroutine(mono.DOMove(tween)); tween.SetCoroutine(coroutine); return(tween); }