using Cysharp.Threading.Tasks; using Framework; using PhxhSDK; /// /// 转场管理 /// public class TransitionManager : Singlenton, IInitable { private bool _show; public void Init() { EventManager.Instance.Register(EventManager.EventName.TransitionShowEnd, EndShow); } public async UniTask OpenNormalTransitionUI() { await UIManager.Instance.CreateAndOpenWindow(UINameConst.UI_TransitionNormal); } public void ReadyShowNormalTransition() { EventManager.Instance.Send(EventManager.EventName.TransitionShowStart); } public void EndShow() { UIManager.Instance.CloseWindow(UINameConst.UI_TransitionNormal); } public void Release() { EventManager.Instance.Unregister(EventManager.EventName.TransitionShowEnd, EndShow); } }