async Task OnButton(int buttonIndex) { if (isAnimating == false) { await TurnOnLED(buttonIndex); game.EnterStep(buttonIndex); } }
void OnButton(int buttonIndex) { Console.WriteLine("Button tapped: " + buttonIndex); if (isAnimating == false) { TurnOnLED(buttonIndex); game.EnterStep(buttonIndex); } }