public void Alloc(int vertCount) { if (vertices == null || vertices.Length != vertCount) { vertices = new Vector3[vertCount]; uv = new Vector2[vertCount]; colors = new Color32[vertCount]; } }
static public int Alloc(IntPtr l) { try { FairyGUI.NGraphics self = (FairyGUI.NGraphics)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); self.Alloc(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }