예제 #1
0
        private void Start()
        {
            playerStatsHandler = FindObjectOfType <PlayerStatsHandler>();

            playerScore.text = playerStatsHandler.GetScore().ToString();
            livesText.text   = playerStatsHandler.GetLivesLeft().ToString();
        }
예제 #2
0
 void Update()
 {
     playerScore.text = playerStatsHandler.GetScore().ToString();
     livesText.text   = playerStatsHandler.GetLivesLeft().ToString();
 }