using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; namespace Ether { [UIElement(FrameTier.MaxTop)] public class LoadingFrame : LoadingFrameBase { protected override void OnShow() { _AnimatorCrossfade.SetTrigger("FadeEnter"); } protected override void OnSubscribe() { EventCenter.AddListener("CutSceneSucc", CutSceneSucc); } private void CutSceneSucc() { _AnimatorCrossfade.SetTrigger("FadeExit"); } protected override void OnUnSubscribe() { EventCenter.RemoveListener("CutSceneSucc", CutSceneSucc); } } }