I had the idea that I would like to keep track of how many guesses it took to get it right and report that on the “Win Screen”, and then maybe have a different comment from the wizard about whether he was getting any better or worse.
I tried using the same technique we used for the guess, so I created an empty GameObject and added the NumberWizard.cs script as a component to it, and attached the new serialized field I created to new text field that I created, but it didn’t work.
My question is, can I attach the same script to two different GameObjects on two different scenes, so that I can display some data from the script on one scene and then display some other data on a different scene that I switched to? I couldn’t figure out how to make it work.
Thanks,
- Rob