UnityCommunity / UnitySingleton

The best way to implement singleton pattern in Unity.
https://en.wikipedia.org/wiki/Singleton_pattern
MIT License
446 stars 59 forks source link

Would it be better to add a singleton class which is not extended from Monobehaviour? #10

Closed fcmz closed 9 months ago

fcmz commented 9 months ago

Maybe it's better to have a singleton class which is not extended from Monobehaviour. And it can be used to add some class to manager global data or implement data.

hasanbayatme commented 9 months ago

Yeah, it improves the naming convention, thank you for the pull request, merging it.