Exemple #1
0
    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;
        }
    }
Exemple #2
0
 public static void ShowStatic()
 {
     instance.Show();
 }