static void CallCreatePanel (Transform t) { UIWidget w = t.GetComponent<UIWidget>(); if (w != null) w.CreatePanel(); for (int i = 0, imax = t.childCount; i < imax; ++i) CallCreatePanel(t.GetChild(i)); }
static public int CreatePanel(IntPtr l) { try { UIWidget self = (UIWidget)checkSelf(l); var ret = self.CreatePanel(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
private static void CallCreatePanel(Transform t) { UIWidget component = t.GetComponent <UIWidget>(); if (component != null) { component.CreatePanel(); } int i = 0; for (int childCount = t.childCount; i < childCount; i++) { CallCreatePanel(t.GetChild(i)); } }
static int CreatePanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UIWidget obj = (UIWidget)ToLua.CheckObject<UIWidget>(L, 1); UIPanel o = obj.CreatePanel(); ToLua.Push(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } }
private static void CallCreatePanel(Transform t) { UIWidget component = t.GetComponent <UIWidget>(); if (component != null) { component.CreatePanel(); } int i = 0; int childCount = t.childCount; while (i < childCount) { NGUITools.CallCreatePanel(t.GetChild(i)); i++; } }