Ejemplo n.º 1
0
        public static void AddToInventory()
        {
            Console.WriteLine("Add something to inventory...");
            string playerItemStr = Console.ReadLine();
            int    playerItemInt = 0;

            if (int.TryParse(playerItemStr, out playerItemInt))
            {
                Player.Add(playerItemInt);
            }
        }