public void RemoveItemFromInventory(InventoryItem item) { int id = items.IndexOf (item); if (id != -1) { Vector3 position = item.transform.position; freePositions.Add (position); // TODO: Do we need to re-add things to the room? Currently just moving the item out of the way. item.transform.position = new Vector3 (-100, -100, -100); items.Remove (id); if (item.IsActive()) { item.SetActive (false); activeItem = null; } } }