Skip to content

Commit 07e9f42

Browse files
committed
app quit일 때 에러 수정
1 parent c36cf1e commit 07e9f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/SingletonComponentBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private void OnApplicationQuit()
6969

7070
public void Dispose()
7171
{
72-
if ((this is null) == false)
72+
if ((this is null) == false && (gameObject is null) == false)
7373
{
7474
Destroy(gameObject);
7575
}

0 commit comments

Comments
 (0)