Hello! I am using this technique in another game of mine (Exact same code) to carry over and count “Kills” between scenes. But whenever I transition between scenes the score counter resets, and then it also stops counting kills.
Any idea what could be wrong? I’ve used the exact same game objects and scripts, with the same names to avoid controversy. I then added the FindObjectOfType<GameSession>().AddToScore(scoreValue);
code to my Die method on my enemy script. It works fine for one scene, then it just… turns off and the number in the corner turns to a zero.
Thanks in advance! Loving these tutorials