using System.Collections; using System.Collections.Generic; using UnityEngine; using DongWuYiXue.Main; using ZXKFramework; namespace DongWuYiXue.Main { public class GameLoadingState : StateBase { public override void OnEnter(params object[] obj) { base.OnEnter(obj); Game.Instance.uiManager.ShowUI(); Debug.Log("GameLoadingState"); Debug.Log(MVC.GetModel().mainData); Game.Instance.sceneManager.LoadLevel(MVC.GetModel().mainData.scene, () => { Game.Instance.uiManager.CloseUI(); Game.Instance.uiManager.CloseUI(); Game.Instance.uiManager.CloseUI(); Game.Instance.uiManager.CloseUI(); Game.Instance.uiManager.CloseUI(); }); } public override void OnExit() { base.OnExit(); } } }