Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FloatTween : MonoBehaviour
- {
- public static Tween CreateTween(float duration, Action<float> OnUpdate, Action OnEnd)
- {
- Tween tween = new Tween();
- tween.DurationLeft = duration;
- tween.IsActive = false;
- tween.IsCanceled = false;
- tween.OnEndAction = OnEnd;
- tween.OnUpdateAction = OnUpdate;
- TweenerEngine.CreateTween(tween);
- return tween;
- }
- }
Add Comment
Please, Sign In to add comment