static int _m_SwitchUI(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ui.ugui.UIManager __cl_gen_to_be_invoked = (xc.ui.ugui.UIManager)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { string uiName = LuaAPI.lua_tostring(L, 2); bool hideLoadingBk = LuaAPI.lua_toboolean(L, 3); System.Collections.IEnumerator __cl_gen_ret = __cl_gen_to_be_invoked.SwitchUI(uiName, hideLoadingBk); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string uiName = LuaAPI.lua_tostring(L, 2); System.Collections.IEnumerator __cl_gen_ret = __cl_gen_to_be_invoked.SwitchUI(uiName); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.ugui.UIManager.SwitchUI!")); }