static int SetChildIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.GComponent obj = (FairyGUI.GComponent)ToLua.CheckObject(L, 1, typeof(FairyGUI.GComponent)); FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject(L, 2, typeof(FairyGUI.GObject)); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.SetChildIndex(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int SetChildIndex(IntPtr l) { try { FairyGUI.GComponent self = (FairyGUI.GComponent)checkSelf(l); FairyGUI.GObject a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); self.SetChildIndex(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }