Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class uTweenExample : MonoBehaviour
- {
- public Vector3 pos1 = Vector3.up * 3f;
- public Vector3 pos2 = Vector3.zero;
- void Start ()
- {
- uTween.AddTween(gameObject, false, 1f, t => transform.position = Vector3.Lerp(pos1, pos2, t), uTween.EasingCurvesType.EaseOutBounce);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement