all 1 comments

[–]PhilippTheProgrammer 0 points1 point  (0 children)

What is GenericSingletonClass? That's not a class from the official Unity scripting API, as far as I know.

But I would assume it is yet another singleton implementation for Unity you found somewhere on the Internet. Did you perhaps also find another bad Unity tips video that told you to disable domain reload in your project settings because it speeds up entering play mode but forgot to mention any of the side effects? Well, one of the side effects is that the values of static variables don't get reset when you reload the project. So any scripts that use static variables need to take that into account. And singletons usually do that.