We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c36cf1e commit 07e9f42Copy full SHA for 07e9f42
Runtime/SingletonComponentBase.cs
@@ -69,7 +69,7 @@ private void OnApplicationQuit()
69
70
public void Dispose()
71
{
72
- if ((this is null) == false)
+ if ((this is null) == false && (gameObject is null) == false)
73
74
Destroy(gameObject);
75
}
0 commit comments