void OnDestroy() { if (thread != null) { thread.Dispose(); thread = null; } state.Dispose(); state = null; }
void OnApplicationQuit() { if (thread != null) { thread.Dispose(); thread = null; } state.Dispose(); state = null; Application.logMessageReceived -= ShowTips; }
private void OnApplicationQuit() { if (thread != null) { thread.Dispose(); thread = null; } state.Dispose(); state = null; #if UNITY_5 || UNITY_2017 || UNITY_2018 Application.logMessageReceived -= ShowTips; #else Application.RegisterLogCallback(null); #endif }
private void CloseThread() { if (thread != null) { thread.Dispose(); thread = null; } }