private void ResolveAnsweringPhaseKeyInput(string keyCode) { if (KeyUtil.IsPlayerArrow(keyCode)) { SetupAnsweringPhase(keyCode); } else if (KeyUtil.IsSpacebar(keyCode)) { if (questions.Count == 1) { // END OF ROUND return; } SetupNewChoosingPhase(true); } else if (KeyUtil.IsCtrl(keyCode)) { GlobalHandler.ActivePlayerFailed(activeQuestion); GlobalHandler.DeactivatePlayers(); if (GlobalHandler.AnyAnsweringPlayerLeft()) { SetupWaitingPhase(); } else { SetupResolutingPhase(); } } }
private void SetupNewChoosingPhase(bool claimPrize) { if (claimPrize) { GlobalHandler.ActivePlayerClaimPrize(activeQuestion); } GlobalHandler.DeactivatePlayers(); questions.Remove(activeQuestion); activeQuestionButton.SetActive(false); activeQuestionButton = null; activeQuestion = null; activePhase = Phase.CHOOSING; anim.Play("QuestionSlideOut"); }