static int AddTabPanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); TabControl obj = (TabControl)ToLua.CheckObject(L, 1, typeof(TabControl)); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject)); obj.AddTabPanel(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }