Exemple #1
0
    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);
    }
Exemple #2
0
    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());
    }
Exemple #3
0
 void onClickOption(object o)
 {
     PanelLoading.open();
 }