static int CreateUIByCache(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); WCG.UIMgr obj = (WCG.UIMgr)ToLua.CheckObject <WCG.UIMgr>(L, 1); string arg0 = ToLua.CheckString(L, 2); UnityEngine.GameObject arg1 = (UnityEngine.GameObject)ToLua.CheckObject(L, 3, typeof(UnityEngine.GameObject)); UnityEngine.GameObject o = obj.CreateUIByCache(arg0, arg1); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }