IndieGame/client/Assets/Scripts/Frame/Loading/LoadingFrame.cs

34 lines
746 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00

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