Beispiel #1
0
 public void AddChildRibbon(RibbonScript childScript)
 {
     if (childRibbons == null)
     {
         childRibbons = new RibbonScript[0];
     }
     RibbonScript[] tempChilds = new RibbonScript[childRibbons.Length + 1];
     for (int i = 0; i < childRibbons.Length; i++)
     {
         tempChilds[i] = childRibbons[i];
     }
     tempChilds[childRibbons.Length] = childScript;
     childRibbons = new RibbonScript[tempChilds.Length];
     for (int i = 0; i < childRibbons.Length; i++)
     {
         childRibbons[i] = tempChilds[i];
     }
 }
Beispiel #2
0
 public void AddChildRibbon(RibbonScript childScript)
 {
     if (childRibbons == null) childRibbons = new RibbonScript[0];
     RibbonScript[] tempChilds = new RibbonScript[childRibbons.Length+1];
     for (int i=0; i<childRibbons.Length; i++) tempChilds[i] = childRibbons[i];
     tempChilds[childRibbons.Length] = childScript;
     childRibbons = new RibbonScript[tempChilds.Length];
     for (int i=0; i<childRibbons.Length; i++) childRibbons[i] = tempChilds[i];
 }