private static bool TableNotFound(LuaRuntime runtime, ScriptState luaState, int index, string tableName) { if (LuaCore.GetType(luaState, index) != ScriptTypes.Table) { runtime.ThrowError("未能找到全局Table=>{0}", tableName); return(false); } return(true); }