IndieGame/client/Assets/Scripts/Frame/Loading/LoadingFrame.cs
2024-11-01 14:07:47 +08:00

30 lines
605 B
C#

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()
{
AddEventListener("CutSceneSucc", CutSceneSucc);
}
private void CutSceneSucc()
{
_AnimatorCrossfade.SetTrigger("FadeExit");
}
}
}