| | |
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_AlchemyNormal.AddListener(ShowAlchemyNormal); |
| | | m_AlchemyFairy.AddListener(ShowAlchemyFairy); |
| | | m_AlchemyDrug.AddListener(ShowAlchemyDrug); |
| | | m_Left.AddListener(()=> |
| | | m_AlchemyNormal.AddListener(ShowAlchemyNormal);
|
| | | m_AlchemyFairy.AddListener(ShowAlchemyFairy);
|
| | | m_AlchemyDrug.AddListener(ShowAlchemyDrug);
|
| | | m_Left.AddListener(()=> |
| | | {
|
| | | m_FuncGroup.TriggerLast();
|
| | | }); |
| | | m_Right.AddListener(()=> |
| | | });
|
| | | m_Right.AddListener(()=> |
| | | {
|
| | | m_FuncGroup.TriggerNext();
|
| | | }); |
| | | });
|
| | | m_Close.AddListener(CloseClick);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | CloseSubWindows(); |
| | | if (!WindowJumpMgr.Instance.IsJumpState) |
| | | { |
| | | WindowCenter.Instance.Open<MainInterfaceWin>(); |
| | | CloseSubWindows();
|
| | | if (!WindowJumpMgr.Instance.IsJumpState)
|
| | | {
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void CloseSubWindows()
|
| | | {
|
| | | var children = WindowConfig.Get().FindChildWindows("AlchemyBaseWin"); |
| | | foreach (var window in children) |
| | | { |
| | | WindowCenter.Instance.Close(window); |
| | | var children = WindowConfig.GetChildWindows("AlchemyBaseWin");
|
| | | foreach (var window in children)
|
| | | {
|
| | | WindowCenter.Instance.Close(window);
|
| | | }
|
| | | }
|
| | |
|