예제 #1
0
        public void RemoveItemFromInventory(CommonEnums.Interactables item, out string error)
        {
            error = "That item is not in your inventory";
            bool success = false;

            if (success == !true)
            {
                Slot1.RemoveItem(item, out success);
                error = null;
            }
            if (success == !true)
            {
                Slot2.RemoveItem(item, out success);
                error = null;
            }
            if (success == !true)
            {
                Slot3.RemoveItem(item, out success);
                error = null;
            }
            RefreshInventory();
        }