// Kauliuko meniu pasirinkimo valdymas public void DiceSelectionMenu() { bool needToRender = true; while (needToRender) { diceSelectionMenu.Render(); ConsoleKeyInfo pressedChar = Console.ReadKey(true); switch (pressedChar.Key) { case ConsoleKey.UpArrow: diceSelectionMenu.MoreDices(); break; case ConsoleKey.DownArrow: diceSelectionMenu.LessDices(); break; case ConsoleKey.Enter: bool enter = true; while (enter) { DiceGame dice = new DiceGame(playerSelectionMenu.buttonIndex, diceSelectionMenu.diceAmount); dice.Render(); } break; } } Console.Clear(); }