public void RestoreToPool(ItemBase item) { Stack <ItemBase> stack; if (_itemsPool.TryGetValue(item.itemType, out stack)) { item.Clear(); stack.Push(item); } }