Duplicate game managers on game reload and referenced objects.
I have tried looking for a solution prior to posting but i am hoping someone here might be able to help. I have an issue where when the game is reloaded it creates a duplicate game manager. I have a check in the game manager to check for duplicates and the new one is automatically deleted but the title screen which holds the game manager references the buttons to start the game and quit the application and the refernce is lost when reloading the title screen due to the scenes game manager being deleted.
Is this just poor coding to use the game manager to handle button actions (instead of a seperate controller) or am i missing something that i should be doing? like should i be initialising the game manager prior to the title screen?
I don't just want things to work, i want them to work properly and do whats best going forward as someone who is still learning.
Your answer
Follow this Question
Related Questions
How to place gameobjects in random, but unique positions... 0 Answers
GameObject, Select Parent As Object 0 Answers
Unity Merging Objects 0 Answers
Any way to carry and use objects? 0 Answers