Advertisement
Berenger

uTween Example

Aug 31st, 2014
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class uTweenExample : MonoBehaviour
  4. {
  5.     public Vector3 pos1 = Vector3.up * 3f;
  6.     public Vector3 pos2 = Vector3.zero;
  7.  
  8.     void Start ()
  9.     {
  10.         uTween.AddTween(gameObject, false, 1f, t => transform.position = Vector3.Lerp(pos1, pos2, t), uTween.EasingCurvesType.EaseOutBounce);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement