Beispiel #1
0
    void Update()
    {
        this.GetComponent <Text>().text = score.ToString();

        if (scoreTemp >= 10000)
        {
            Lives.AddALife();
            Lives.UpdateLives();
            scoreTemp = 0;
        }
    }