Ejemplo n.º 1
0
 private void DeleteItem(SaveItem item, bool removeFromList)
 {
     item.Deleted  -= OnItemDeleted;
     item.Selected -= OnItemSelected;
     if (removeFromList)
     {
         _items.Remove(item);
     }
     item.FreeResources();
     Destroy(item.gameObject);
     _saver.DeleteSave(item.Id);
 }