Hey @Rick_Davidson, the lecture is great - as they’ve all been thus far - and I think I’m missing something subtle.
My build settings have level 1 and then level 2. If both scenes contain GameStatus->Game Canvas->TextMeshPro Text, then the score increments fine in L1, however it won’t increment in L2 (as in the score at the end of L1 displays in L2 no matter how many blocks I break).
As you might guess, if I delete GameStatus from L2, then the score increments just fine, but that defeats the purpose of this lecture.
I logged the current score to the console inside the AddToScore() method, and it does indeed run when I break blocks in L2, however it outputs the same score each time.
Things I’ve done which result in the same behavior:
–Verified that the Awake() module in the GameStatus script is identical to what you show in the lecture.
–Deleted all objects from L2 and rebuilt the hierarchy from prefabs.
–Reversed the order of L1/L2 in the build settings - no matter the order, the level which plays 2nd will not increment the score.
Any ideas?
Update: I happened to Reimport All for my prefabs, and the score worked properly for a brief period of time - maybe a half-dozen play-throughs after that point. At some point, with me having changed no code, and only moved a few blocks around, it’s back to not incrementing the score on the level which plays second.