Hello, I'm a beginner and trying to create a game where a lot of objects need to interact with game managers.
There are different types of objects and also different types of managers.
Some usages:
Is it safe to always access Game Managers using Singleton?
There are different types of objects and also different types of managers.
Some usages:
- objects movement speed, which is same in all objects and defined in a manager.
- different types of listener, like click listener, in objects that need to be called in a manager.
- some managers need to access other managers. like level manager needs access to score manager.
Is it safe to always access Game Managers using Singleton?