34 lines
746 B
C#
34 lines
746 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
|
|||
|
{
|
|||
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|