Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using UnityEngine;
- using UnityEngine.UI;
- using DG.Tweening;
- public class CircleWipe : SceneTransition
- {
- public Image circle;
- public override IEnumerator AnimateTransitionIn()
- {
- circle.rectTransform.anchoredPosition = new Vector2(-1000f, 0f);
- var tweener = circle.rectTransform.DOAnchorPosX(0f, 1f);
- yield return tweener.WaitForCompletion();
- }
- public override IEnumerator AnimateTransitionOut()
- {
- var tweener = circle.rectTransform.DOAnchorPosX(1000f, 1f);
- yield return tweener.WaitForCompletion();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment