private void Start() { playerStatsHandler = FindObjectOfType <PlayerStatsHandler>(); playerScore.text = playerStatsHandler.GetScore().ToString(); livesText.text = playerStatsHandler.GetLivesLeft().ToString(); }
void Update() { playerScore.text = playerStatsHandler.GetScore().ToString(); livesText.text = playerStatsHandler.GetLivesLeft().ToString(); }