Skip to content

Commit

Permalink
app quit일 때 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KorStrix committed Dec 20, 2021
1 parent c36cf1e commit 07e9f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/SingletonComponentBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void OnApplicationQuit()

public void Dispose()
{
if ((this is null) == false)
if ((this is null) == false && (gameObject is null) == false)
{
Destroy(gameObject);
}
Expand Down

0 comments on commit 07e9f42

Please sign in to comment.