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

30 lines
605 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
{
protected override void OnShow()
2024-10-11 10:12:15 +08:00
{
_AnimatorCrossfade.SetTrigger("FadeEnter");
}
protected override void OnSubscribe()
2024-10-11 10:12:15 +08:00
{
2024-11-01 14:07:47 +08:00
AddEventListener("CutSceneSucc", CutSceneSucc);
2024-10-11 10:12:15 +08:00
}
private void CutSceneSucc()
{
_AnimatorCrossfade.SetTrigger("FadeExit");
}
}
}