// PRIVATE public void SpawnPickup(InventoryItem item, Vector3 spawnLocation, int number) { var pickup = item.SpawnPickup(spawnLocation, number); droppedItems.Add(pickup); }
///////////////////////////// PUBLIC METHODS //////////////////////////////////////////// /// <summary> /// Drops the item into the world. /// </summary> /// <param name="item"></param> public void DropItem(InventoryItem item, int number) { SpawnPickup(item, GetDropLocation(), number); }
/// <summary> /// Create a pickup at the current position. /// </summary> /// <param name="item">The item type for the pickup.</param> public void DropItem(InventoryItem item) { SpawnPickup(item, GetDropLocation(), 1); }