static int _m_setIcon_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && translator.Assignable <UnityEngine.Transform>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Transform _item = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); string _child = LuaAPI.lua_tostring(L, 2); int _uid = LuaAPI.xlua_tointeger(L, 3); PUtils.setIcon(_item, _child, _uid); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Transform>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { UnityEngine.Transform _item = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); string _child = LuaAPI.lua_tostring(L, 2); string _url = LuaAPI.lua_tostring(L, 3); PUtils.setIcon(_item, _child, _url); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to PUtils.setIcon!")); }