コード例 #1
0
    void OnInitialize()
    {
        LuaMgr.InitStart();

        LuaMgr.DoFile("Logic/XGame");         //加载游戏
        LuaMgr.DoFile("Logic/Network");       //加载网络
        NetworkMgr.Init();                    //初始化网络
        Util.CallMethod("XGame", "OnInitOK"); //初始化完成

        if (inst_downloadPanel != null)
        {
            GameObject.Destroy(inst_downloadPanel);
        }

        XPageMgr.Inst.ShowPage(true, "UI/Prefab/LoginPanel");
        EventDispatcher.TriggerEvent("test");
        //EventDispatcher.TriggerEvent<int>("testint", 111);
    }