private static void DestroyFrameWorkEvent(int lv) { if (Schedule.mIns != null) { Schedule.mIns.Destroy(); } if (GameSceneCtr.mIns != null) { GameSceneCtr.mIns.Destroy(); } if (GameUIControl.mIns != null) { GameUIControl.mIns.Destroy(); } if (KObjectPool.mIns != null) { KObjectPool.mIns.Clear(); } if (GameSyncCtr.mIns != null) { GameSyncCtr.mIns.EndSync(); } FrameCommand.Destroy(); WaitTaskCommand.Destroy(); TimeCommand.Destroy(); FrameworkAttRegister.DestroyAttEvent(MainLoopEvent.Start, typeof(WaitTaskCommand), "PreLoad"); FrameworkAttRegister.DestroyAttEvent(MainLoopEvent.Start, typeof(TimeCommand), "PreLoad"); FrameworkAttRegister.DestroyAttEvent(MainLoopEvent.Start, typeof(FrameCommand), "PreLoad"); FrameworkAttRegister.DestroyAttEvent(MainLoopEvent.Start, typeof(BundlePathConvert), "PreLoad"); FrameworkAttRegister.DestroyAttEvent(MainLoopEvent.Start, typeof(GenericParams), "Preload"); FrameworkAttRegister.DestroyAttEvent(MainLoopEvent.Start, typeof(SimpleParams), "Preload"); FrameworkAttRegister.DestroyAttEvent(MainLoopEvent.OnDestroy, typeof(FrameWorkConfig), "DestroyFrameWorkEvent"); }