Exemplo n.º 1
0
 public static void PlayTweenPosition(TweenPosition tween, Vector3 from, Vector3 to, float duration = 1f, float delay = 0f)
 {
     if (tween == null)
     {
         return;
     }
     tween.from     = from;
     tween.to       = to;
     tween.duration = duration;
     tween.delay    = delay;
     tween.PlayTween();
 }