Esempio n. 1
0
        // PRIVATE

        public void SpawnPickup(InventoryItem item, Vector3 spawnLocation, int number)
        {
            var pickup = item.SpawnPickup(spawnLocation, number);

            droppedItems.Add(pickup);
        }
Esempio n. 2
0
        ///////////////////////////// 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);
        }
Esempio n. 3
0
 /// <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);
 }