Exemplo n.º 1
0
 private IEnumerator RotateTo(Quaternion target)
 {
     yield return(StartCoroutine(TweenUtil.AnimateQuaternion(transform.rotation, target, 0.5f,
                                                             r => transform.rotation = r)));
 }