Example #1
0
        public void RemoveChild(int index)
        {
            BaseControl ctrl = this.children[index];

            ctrl.OnDestroy();
            this.children.RemoveAt(index);
        }
Example #2
0
 public void RemoveChild(BaseControl ctrl)
 {
     ctrl.OnDestroy();
     this.children.Remove(ctrl);
 }