static int CreateUI(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string))) { string arg0 = ToLua.ToString(L, 1); UnityEngine.Transform o = UIAPI.CreateUI(arg0); ToLua.Push(L, o); return(1); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(bool))) { string arg0 = ToLua.ToString(L, 1); bool arg1 = LuaDLL.lua_toboolean(L, 2); UnityEngine.Transform o = UIAPI.CreateUI(arg0, arg1); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UIAPI.CreateUI")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }