Sqwert
1
My GameManager script seems to continue running after calling a new Scene to show player scores.
Have no statics and not using DontDestroyOnLoad.
Got around the problem so far by setting a bool to ensure the scoring function runs only once.
Using PlayerPrefs to exchange data between Scenes.
Any ideas on why the GameManager is still running after the new Scene is called would be appreciated.
Hi
Do you see the GameManager running in the hierarchy window (Unity - Manual: The Hierarchy window)
Are you using the same GameManager for all the scenes.
cheers
Sqwert
3
Nope
Went back and loaded an older build just to make sure.
Ok you don’t see it in the hierarchy and not using the same GameManager.
How are you sure the old gamemanager is running in the new scene.
Do you have any canvas overlap between scenes that you can confirm.