コード例 #1
0
        private void AddItemToInventory()
        {
            Console.WriteLine("1) for weapon, 2) for misc");
            ConsoleKeyInfo getInput = Console.ReadKey();

            input = getInput.KeyChar;

            switch (input)
            {
            case '1':
                InventoryManager.AddToInventory(WeaponItem.Axe());
                break;

            case '2':
                InventoryManager.AddToInventory(MiscItem.Quartz());
                break;

            default:
                break;
            }
        }