static void Main(string[] args) { string currDir = Directory.GetCurrentDirectory(); Directory.CreateDirectory(Path.Combine(currDir, "Tech")); Directory.CreateDirectory(Path.Combine(currDir, "Saves")); MainFunctions.MainMenu(); }
public void LevelLoop() { while (true) { Console.WriteLine("To go to main menu, press 9. To exit game, press 0."); int key = ServiceFunctions.ChoosingRightKey(Console.ReadKey().KeyChar); switch (key) { case 9: MainFunctions.MainMenu(); break; case 0: MainFunctions.Exit_Game(); break; default: break; } } }