Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using UnityEngine;
- using DG.Tweening;
- [System.Serializable]
- public class CrossFade : SceneTransition
- {
- public CanvasGroup crossFade;
- public override IEnumerator AnimateTransitionIn()
- {
- var tweener = crossFade.DOFade(1f, 1f);
- yield return tweener.WaitForCompletion();
- }
- public override IEnumerator AnimateTransitionOut()
- {
- var tweener = crossFade.DOFade(0f, 1f);
- yield return tweener.WaitForCompletion();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment