bugfix: fix MTDispatcher

This commit is contained in:
alexiscatnip
2022-08-06 02:43:06 +08:00
committed by alexiscatnip
parent 1d24fea490
commit c336c09f4b
@@ -138,7 +138,11 @@ public class UnityMainThreadDispatcher : MonoBehaviour
void OnDestroy()
{
_instance = null;
//only perform clean-up for myself.
if (_instance == this)
{
_instance = null;
}
}
public static Thread GMainThread;