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