diff --git a/Assets/Scripts/Runtime/Singleton.cs b/Assets/Scripts/Runtime/Singleton.cs index 981a830..b06be06 100644 --- a/Assets/Scripts/Runtime/Singleton.cs +++ b/Assets/Scripts/Runtime/Singleton.cs @@ -44,12 +44,12 @@ public static T Instance { get { - if (Instance == null) + if (instance == null) { //ensure that only one thread can execute lock (typeof(T)) { - if (Instance == null) + if (instance == null) { instance = new T(); instance.InitializeSingleton();