示例#1
0
 public static ChatLuaUIMgr InitByFind(string name)
 {
     if (m_Instance == null)
     {
         GameObject go = GameObject.Find(name);
         m_Instance = new ChatLuaUIMgr(go);
     }
     return(m_Instance);
 }
示例#2
0
        static int _m_InitByFind_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    string _name = LuaAPI.lua_tostring(L, 1);

                    var gen_ret = ChatLuaUIMgr.InitByFind(_name);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
示例#3
0
        static int _m_FindUIRes(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ChatLuaUIMgr gen_to_be_invoked = (ChatLuaUIMgr)translator.FastGetCSObj(L, 1);



                {
                    string _name = LuaAPI.lua_tostring(L, 2);

                    var gen_ret = gen_to_be_invoked.FindUIRes(_name);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }