| | |
| | | |
| | | protected override void OnPreOpen() |
| | | {
|
| | | IsButtonNumber();
|
| | | if (WindowCenter.Instance.IsOpen<MainInterfaceWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | |
| | | {
|
| | | functionOrder = 1;
|
| | | }
|
| | |
|
| | |
|
| | | } |
| | | |
| | | protected override void OnActived()
|
| | |
| | | |
| | | private void OpenServiceAchievementButton()
|
| | | {
|
| | | if (!openServiceAchievementModel.IsOpen)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("OutofActivityTime");
|
| | | return;
|
| | | }
|
| | | CloseChild();
|
| | | if (windowState == WindowState.Opened)
|
| | | {
|
| | |
| | | } |
| | | private void SpringFestivalButton()
|
| | | {
|
| | | if (!springFestivalModel.IsOpenFeatures())
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("OutofActivityTime");
|
| | | return;
|
| | | }
|
| | | CloseChild();
|
| | | if (windowState == WindowState.Opened)
|
| | | {
|
| | |
| | | WindowCenter.Instance.Open<SpringFestivalWin>(true);
|
| | | }
|
| | | functionOrder = 1;
|
| | |
|
| | | } |
| | | #endregion |
| | |
|
| | | private void IsButtonNumber()
|
| | | {
|
| | | if (openServiceAchievementModel.IsOpen)
|
| | | {
|
| | | m_OpenServiceAchievementBtn.gameObject.SetActive(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_OpenServiceAchievementBtn.gameObject.SetActive(false);
|
| | | }
|
| | | if (springFestivalModel.IsOpenFeatures())
|
| | | {
|
| | | m_SpringFestival.gameObject.SetActive(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_SpringFestival.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | } |
| | | |
| | | } |