private void TryActivateItem(SellableItem item) { if (item is ThrowedObject) { ThrowedObject upItem = item as ThrowedObject; _thrower.SetThrowedObject(upItem); _currentThrowedItem = _throwedItems.IndexOf(upItem); foreach (var item_ in _throwedItems) { item_.DeActivate(); } item.Activate(); } else if (item is RoomItem) { RoomItem upItem = item as RoomItem; upItem.TryRender(); } SaveAllItems(); }