예제 #1
0
        public void getUI(string uiname, Action <IUI, Variant> cb, Variant data)
        {        //获得界面
            if (!(hasCreator(uiname)))
            {
                GameTools.PrintNotice("getUI[" + uiname + "]  err!!");
                return;
            }

            loadUIStruct st = new loadUIStruct();

            st.data             = data;
            st.uiname           = uiname;
            st.onLoadedCallback = cb;
            _uiLoads.Add(st);
        }
예제 #2
0
        public void getUI(string uiname, Action <IUI, Variant> cb, Variant data)
        {
            bool flag = !base.hasCreator(uiname);

            if (flag)
            {
                GameTools.PrintNotice("getUI[" + uiname + "]  err!!");
            }
            else
            {
                loadUIStruct loadUIStruct = new loadUIStruct();
                loadUIStruct.data             = data;
                loadUIStruct.uiname           = uiname;
                loadUIStruct.onLoadedCallback = cb;
                this._uiLoads.Add(loadUIStruct);
            }
        }