public override void OnExit() { //MainUIManager.Singleton.OnExitDestroy("StateStartup"); UIDebugStartUp self = UIManager.Singleton.GetUIWithoutLoad <UIDebugStartUp>(); self.Destroy(); base.OnExit(); }
public override void OnEnter() { //MainUIManager.Singleton.OnLoadStateUI("StateStartup"); UIDebugStartUp ui = UIDebugStartUp.GetInstance();//.ShowWindow(); ui.ShowWindow(); //GameResMng.ForcePackage = true; //GameResMng.GetResMng().StartWWW(true); }
static public UIDebugStartUp GetInstance() { UIDebugStartUp self = UIManager.Singleton.GetUIWithoutLoad <UIDebugStartUp>(); if (self != null) { return(self); } self = UIManager.Singleton.LoadUI <UIDebugStartUp>("UI/UIDebugStartUp", UIManager.Anchor.Center); return(self); }
public override void OnUpdate() { UIDebugStartUp self = UIManager.Singleton.GetUIWithoutLoad <UIDebugStartUp>(); ClientNet.Singleton.Update(); if (GameResManager.Singleton.m_isPreLoadFinish && self.CanProcessMainGame) { GameTable.LoadTable(); if (!GameSettings.Singleton.m_isSingle) { MainGame.Singleton.TranslateTo(new StateLogin()); } } }