public static void openNextScene(SceneBase scene) { Tools.Log("===> openNextScene!"); if (m_busy) { Tools.Log("next scene is busy now!"); return; } //MgrPanel.disposeAllPanel(); if (m_curScene != null) { MgrResLoader.insertRemoving(m_curScene.getResList()); m_curScene.onLeave(); m_curScene = null; } m_busy = true; PanelLoading.open(); MgrResLoader.insertLoading(scene.getResList()); m_nextScene = scene; MgrPanel.disposeAllPanel(); MgrRes.clearObjectCacheAll(); Util.ClearMemory(); MgrResLoader.start(executeSceneDown); }
void onClickCreate() { //List<string> list = new List<string>(); //list.Add("1 Vs 1"); //list.Add("2 Vs 2"); //list.Add("3 Vs 3"); //list.Add("4 Vs 4"); //list.Add("5 Vs 5"); //MgrPanel.openOption(list, onClickOption); PanelLoading.open(); MgrScene.openNextScene(new SceneBattle()); }
void onClickOption(object o) { PanelLoading.open(); }