Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        Dead = Checker.Dead; //Checks to see if the player died.
        if (Dead == true)
        {
            DeathScreen.SetActive(true);
            Pauser.DeadPaused();
        }

        else if (!Dead && Pauser.Stopped == false)
        {
            ScoreCounter       = ScoreCounter + 1;
            ScoreDisplay.text  = "Score: " + ScoreCounter.ToString();
            ScoreDisplay2.text = ScoreCounter.ToString();
        }
    }