private void OnItemsRemoved(object sender, ItemsRemovedArgs e)
 {
     for (int index = 0; index < e.Items.Length; ++index)
     {
         GameObject gameObject = (GameObject)e.Items[index];
         if (Object.op_Inequality((Object)gameObject, (Object)null))
         {
             Object.Destroy((Object)gameObject);
         }
     }
 }
 private void OnItemsRemoved(object sender, ItemsRemovedArgs e)
 {
     for (int i = 0; i < e.Items.Length; ++i)
     {
         GameObject go = (GameObject)e.Items[i];
         if (go != null)
         {
             Destroy(go);
         }
     }
 }
 private void OnItemsRemoved(object sender, ItemsRemovedArgs e)
 {
     for (int index = 0; index < e.Items.Length; ++index)
     {
         DataItem dataItem = (DataItem)e.Items[index];
         if (dataItem.Parent != null)
         {
             dataItem.Parent.Children.Remove(dataItem);
         }
         this.m_dataItems.Remove(dataItem);
     }
 }
Пример #4
0
 private void OnItemsRemoved(object sender, ItemsRemovedArgs e)
 {
     //Destroy removed dataitems
     for (int i = 0; i < e.Items.Length; ++i)
     {
         DataItem dataItem = (DataItem)e.Items[i];
         if (dataItem.Parent != null)
         {
             dataItem.Parent.Children.Remove(dataItem);
         }
     }
 }