void CheckEndOfGame(float reactTime) { if (GameInfo.CheckIfWinningCriterionMet()) { DataUtil.UnlockCurrentRoom(); } if (Input.GetKeyDown(KeyCode.Q)) { EventManager.TriggerEvent("Qdown"); } }
public static void RefreshScore() { score.text = "SCORE " + GameInfo.score.ToString() + "/" + GameInfo.WinningCriterion.ToString(); if (GameInfo.CheckIfWinningCriterionMet()) { popUpMessage.text = "You win! The next level is unlocked now. Press Q to go on with world exploration"; } else { popUpMessage.text = "You win!\nStart a new game or [PLAY AGAIN]."; } }