Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace GladiatorFight
- {
- public class UserInput
- {
- public string GetInputLeftFighterName()
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.Write("Выберите бойца левых ворот (напишите имя): ");
- string userInput = Console.ReadLine();
- Console.ResetColor();
- return userInput;
- }
- public string GetInputRightFighterName()
- {
- Console.ForegroundColor = ConsoleColor.Green;
- Console.Write("Выберите бойца правых ворот (напишите имя): ");
- string userInput = Console.ReadLine();
- Console.ResetColor();
- return userInput;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement