diff --git a/Assets/Scipts/Utility/Singleton.cs b/Assets/Scipts/Utility/Singleton.cs index 00af291..e0956b7 100644 --- a/Assets/Scipts/Utility/Singleton.cs +++ b/Assets/Scipts/Utility/Singleton.cs @@ -20,7 +20,7 @@ public class MonoSingleton : MonoBehaviour where T : MonoSingleton private void SetAsSingleton() { if (Instance != null && Instance != this) - Destroy(this.gameObject); + Destroy(this); else Instance = (T)this;