Ejemplo n.º 1
0
        public static string GetEnergyType()
        {
            string[] supportedEnergyTypes = m_Garage.GetSupportedEnergyTypes();
            showSubMenu(supportedEnergyTypes, "Please choose the Vehicle's Energy Type from the following options:");
            int userChoice = Utils.GetUserMenuChoice(supportedEnergyTypes.Length, 1);

            return(supportedEnergyTypes[userChoice - 1]);
        }