private void OnDisable()
{
this.DestroyController();
if (this.m_AvatarPreview != null)
{
this.m_AvatarPreview.OnDestroy();
}
if (this.m_MaskInspector != null)
{
UnityEngine.Object.DestroyImmediate(this.m_MaskInspector);
}
if (this.m_Mask != null)
{
UnityEngine.Object.DestroyImmediate(this.m_Mask);
}
AnimationEventPopup.ClosePopup();
}