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
|
|
|
|
|
{
|
2024-10-27 04:03:15 +08:00
|
|
|
|
protected override void OnShow()
|
2024-10-11 10:12:15 +08:00
|
|
|
|
{
|
|
|
|
|
_AnimatorCrossfade.SetTrigger("FadeEnter");
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-27 04:03:15 +08:00
|
|
|
|
protected override void OnSubscribe()
|
2024-10-11 10:12:15 +08:00
|
|
|
|
{
|
|
|
|
|
EventCenter.AddListener("CutSceneSucc", CutSceneSucc);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void CutSceneSucc()
|
|
|
|
|
{
|
|
|
|
|
_AnimatorCrossfade.SetTrigger("FadeExit");
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-27 04:03:15 +08:00
|
|
|
|
protected override void OnUnSubscribe()
|
2024-10-11 10:12:15 +08:00
|
|
|
|
{
|
|
|
|
|
EventCenter.RemoveListener("CutSceneSucc", CutSceneSucc);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|