public void IncreaseScore(int score) { if (!isGameOver) { this.score += score; uiManager.UpdateScore(this.score); } }
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; }