Should game managers be prefabs?
I'm using Unity with PlayMaker to make a game as I'm not great at coding, but I don't think this matters.
I have multiple scenes in my game, and each uses the same game managers, such as health_manager, mana_manager, gold_manager and score_manager. They are children of an empty game object called simply game_managers.
Should I make these managers into prefabs? Individually or simply make the game_managers object into a prefab? I heard about singletons, but I'm unclear about how to preserve global game data throughout all scenes, such as score, gold and health, etc. Should the game managers (individually or as a group) be declared as a singleton? Or is there a better way to maintain global variables throughout the entire game?
Thank you for your explanation.
Your answer
Follow this Question
Related Questions
How can I handle scripts correctly? What's a good way to apply scripts to GameObjects? 1 Answer
Elements of Listare null after loading scene 1 Answer
Start is not called after reloading the level 3 Answers
I didn't assign a value to the instance in singleton, but it is assigned automatically. 0 Answers
Change in Editor via Script Values of another Script 2 Answers