Hello there!
I know singletons from Java and other languages. And I know that there is a big discussion about pro and cons of singletons.
I would like to know why we created a singleton without a static _instance variable (some could argue that it’s not a singleton, it just happens to be instantiated once).
Is it faster in Unity doing it like in this lecture? Was it done because it should be as understandable as possible and therefore this was the better choice compared to static variables?
Just thinking about adding a CharacterManager in my game where you can select more than one character which is than set to be the active one. I thought about doing the CharacterManager as a Singleton and don’t know if it’s better doing it like Ben did.
Thanks!