internal void OnDisable()
{
if (this.m_WireMaterial != null)
{
UnityEngine.Object.DestroyImmediate(this.m_WireMaterial, true);
}
if (this.m_PreviewUtility != null)
{
this.m_PreviewUtility.Cleanup();
this.m_PreviewUtility = null;
}
FrameDebuggerWindow.s_FrameDebuggers.Remove(this);
EditorApplication.playmodeStateChanged = (EditorApplication.CallbackFunction)Delegate.Remove(EditorApplication.playmodeStateChanged, new EditorApplication.CallbackFunction(this.OnPlayModeStateChanged));
FrameDebuggerWindow.DisableFrameDebugger();
}