Im doing the Unity Turn Based Strategy course, and I know we have used some singletons, probably lots of them, depending on who you ask.
I have already read this article What is the issue with Singletons? And im not here to ask the same.
These are my questions:
- What are the pros/cons of using a Singleton vs some other aproaches.
- What are those other possible aproaches in Unity? What other patterns or coding styles in general could I use, if I want to avoid Singletons?
- Most importantly: What questions should I ask myself about the code or functionality, before deciding if a Singleton is or not the best aproach in this case?
If anyone would provide me with some simple examples that would be perfect, but its not neccesary.
Im not fully againt nor fully in favour of Singletons, I just want to understand which are and are not the use cases.
Thanks