public void IncrementScore()
    {
        ui.SetScore(++score);

        if (score == 10)
        {
            SetInt(0.5f);
            PlayGongSound();
            scoreAtPhase2 = score;
        }

        else if (score == scoreAtPhase2 + 20)
        {
            print("Congratulations, you win.");
            SetInt(10.0f);
            Invoke("JustKidding", 8.0f);
        }

        else if (score == scoreAtPhase3 + 10)
        {
            print("You win. No, really this time.");
            SetInt(100.0f);
        }
    }
示例#2
0
 public void IncrementScore()
 {
     ui.SetScore(++score);
 }