Advertisement
Saxy_Guy

TweenManager example

Mar 10th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using MaterialUI;
  2. using UnityEngine;
  3.  
  4. public class TweenExample : MonoBehaviour
  5. {
  6.     public void Start()
  7.     {
  8.         RectTransform m_RectTransform = (RectTransform)transform;
  9.         TweenManager.TweenVector2(vector2 => m_RectTransform.anchoredPosition = vector2, Vector2.zero, new Vector2(0f, 200f), 2f, 0.5f, () => Debug.Log("Tween finished!"), false, Tween.TweenType.EaseInOutQuint);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement