예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="itemToUse"></param>
        protected virtual void UseItem(ItemStack itemToUse)
        {
            Debug.Log("USE ITEM " + itemToUse.Item.ItemName);

            useItemEvent.OnItemEventRaised(itemToUse);

            // Update inventory
            FillInventory();
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="itemToUse"></param>
 protected virtual void EquipItem(ItemStack itemToUse)
 {
     Debug.Log("USE ITEM " + itemToUse.Item.ItemName);
     equipItemEvent.OnItemEventRaised(itemToUse);
 }