Example #1
0
    public void IncreaseScore(int score)
    {
        if (!isGameOver)
        {
            this.score += score;

            uiManager.UpdateScore(this.score);
        }
    }
Example #2
0
    private void Start()
    {
        Time.timeScale = 1;

        playerAnimator      = PlayerManager.instance.player.GetComponent <Animator>();
        wonTheGameStateHash = Animator.StringToHash("wonGame");
        uiManager           = TFOGUIManager.Instance;
        score = 0;
        uiManager.UpdateScore(score);
        isGameOver = false;
    }