| | |
| | |
|
| | | internal void NotifyBeforeOpen<T>(T window) where T : Window
|
| | | {
|
| | | if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
|
| | | CalcMainInterfaceWin();
|
| | | //if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
|
| | | // CalcMainInterfaceWin();
|
| | |
|
| | | if (windowBeforeOpenEvent != null)
|
| | | {
|
| | |
| | |
|
| | | internal void JumpNotifyAfterClose<T>(T window) where T : Window
|
| | | {
|
| | | if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
|
| | | CalcMainInterfaceWin();
|
| | | //if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
|
| | | // CalcMainInterfaceWin();
|
| | | if (jumpWindowCloseEvent != null)
|
| | | {
|
| | | jumpWindowCloseEvent(window);
|
| | |
| | | float checkTimer = 0f;
|
| | | private void LateUpdate()
|
| | | {
|
| | | var checkMainWinImmedidately = closeCommands.Count + openCommands.Count > 0;
|
| | |
|
| | | while (closeCommands.Count > 0)
|
| | | {
|
| | | var command = closeCommands[0];
|
| | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | checkTimer += checkMainWinImmedidately ? 1f : Time.deltaTime;
|
| | | if (checkTimer > 0.25f)
|
| | | {
|
| | | checkTimer = 0f;
|
| | | CalcMainInterfaceWin();
|
| | | }
|
| | | }
|
| | |
|
| | | //主界面的开关默认处理
|