Hello,
Why we creating new script (GameOverScoreDisplay) instead of just attaching ScoreDisplay script to new Text in GameOver scene?
That solution worked for me.
Hello,
Why we creating new script (GameOverScoreDisplay) instead of just attaching ScoreDisplay script to new Text in GameOver scene?
That solution worked for me.
The new script is created because it uses the ScoreAbsorber game object instead of the ScoreKeeper. In my opinion ScoreAbsorber is an overkill and the functionality of score keeping and what it may follows should be kept inside the ScoreKeeper. If you can avoid using a ScoreAbsorber, while still maintaining the functionality suggested in the lecture and avoiding duplicates of ScoreKeeper on loading a new scene, then you have no reason creating the GameOverScoreDisplay as you suggested.