/// <summary> /// 窗口销毁 /// </summary> private void OnDestroy() { if (LogicHandler != null) { LogicHandler.Dispose(); } if (FrameRoot) { EngineCoreEvents.ResourceEvent.ReleaseAssetEvent.SafeInvoke(ResName, FrameRoot); GameObject.Destroy(FrameRoot); } }