void Update() { if (playerScore >= MyGlobals.WINNING_THRESHOLD) { winningWindow.Show(); stateControllerScript.currentState = StateController.State.Won; } scoreDisplayText.text = playerScore.ToString() + "/100"; if (stateControllerScript.currentState == StateController.State.WaitingAnswer) { doOnce = false; } if (stateControllerScript.currentState == StateController.State.Playing) { doOnce = true; } }
public static void ShowStatic() { instance.Show(); }