コード例 #1
0
        /// <summary>
        /// 窗口销毁
        /// </summary>
        private void OnDestroy()
        {
            if (LogicHandler != null)
            {
                LogicHandler.Dispose();
            }

            if (FrameRoot)
            {
                EngineCoreEvents.ResourceEvent.ReleaseAssetEvent.SafeInvoke(ResName, FrameRoot);
                GameObject.Destroy(FrameRoot);
            }
        }