예제 #1
0
    public static Tween DORotate(this Transform transform, Vector3 target, float time)
    {
        MonoBehaviour mono      = transform.GetComponent <MonoBehaviour>();
        Tween         tween     = new Tween(transform, target, time);
        Coroutine     coroutine = mono.StartCoroutine(mono.DORotate(tween));

        tween.SetCoroutine(coroutine);
        return(tween);
    }