Пример #1
0
        async Task OnButton(int buttonIndex)
        {
            if (isAnimating == false)
            {
                await TurnOnLED(buttonIndex);

                game.EnterStep(buttonIndex);
            }
        }
Пример #2
0
 void OnButton(int buttonIndex)
 {
     Console.WriteLine("Button tapped: " + buttonIndex);
     if (isAnimating == false)
     {
         TurnOnLED(buttonIndex);
         game.EnterStep(buttonIndex);
     }
 }