private void WaitClick() { int buttonIndex = moduleConnector.GetButtonClick(); Extensions.ExcecuteWithAppIdleDispatcher(() => OnPlayerButtonClicked?.Invoke(buttonIndex, currentQuestion.Points)); isPlayerAnswering = true; isAnswerWaiting = false; }
private void RegistrationWorker() { int buttonIndex = connector.GetButtonClick(); if (buttonIndex == -1) { Extensions.ExcecuteWithAppIdleDispatcher(() => OnPlayerDisable?.Invoke()); } else if (buttonIndex == -2) { return; } else { Extensions.ExcecuteWithAppIdleDispatcher(() => OnPlayerRegistrated?.Invoke(buttonIndex)); } }