Skip to content

Commit

Permalink
Update MainThreadDispatcher.cs (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody4618 authored Oct 27, 2023
1 parent 3600773 commit cabdb73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Runtime/codebase/utility/MainThreadDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ void Awake()

void OnDestroy()
{
_instance = null;
if (_instance == this)
{
_instance = null;
}
}
}

0 comments on commit cabdb73

Please sign in to comment.