Beispiel #1
0
        public void Initialize(ScoreCounter scoreCounter, IPlayerController playerController, uint secondsToQuit)
        {
            playerScore.gameObject.SetActive(true);

            scoreCounter.OnScoreChange     += UpdateScore;
            playerController.OnLivesChange += UpdateLives;

            quitLabelText.text = string.Format(quitLabelTemplate, secondsToQuit);
            quitLabel.SetActive(true);

            UpdateLives(playerController.GetMaxLives());
            UpdateScore(0);
        }