29 lines
934 B
C#
Raw Normal View History

2025-09-08 14:51:28 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using YiLiao.Main;
using ZXKFramework;
namespace YiLiao.Main
{
public class GameLoadingState : StateBase
{
public override void OnEnter(params object[] obj)
{
base.OnEnter(obj);
Game.Instance.uiManager.ShowUI<LoadingPanel>();
Debug.Log("GameLoadingState");
Game.Instance.sceneManager.LoadLevel(MVC.GetModel<GameModel>().mainData.scene, () => {
Game.Instance.uiManager.CloseUI<ProjectPanel>();
Game.Instance.uiManager.CloseUI<LoadingPanel>();
Game.Instance.uiManager.CloseUI<PatternPanel>();
Game.Instance.uiManager.CloseUI<TitlePanel>();
Game.Instance.uiManager.CloseUI<HomePanel>();
});
}
public override void OnExit()
{
base.OnExit();
}
}
}