| | |
| | | {
|
| | | [SerializeField] FunctionButton PetPanelBtn;//灵宠面板按钮
|
| | | [SerializeField] FunctionButton EvolveTrainWinBtn;//灵宠培养面板按钮
|
| | | [SerializeField] FunctionButton m_FairyGrabBoss;
|
| | | [SerializeField] FunctionButtonGroup FuncBtnGroup;
|
| | | [SerializeField] Button _CloseBtn;
|
| | | [SerializeField] Button _LeftBtn;
|
| | |
| | | base.OnActived();
|
| | |
|
| | |
|
| | | if (!WindowJumpMgr.Instance.IsJumpState)//是否进行跳转
|
| | | if (!WindowJumpMgr.Instance.IsJumpState && functionOrder < 2)//是否进行跳转
|
| | | {
|
| | | if (mountModel.IsHorsePanelState() > petmodel.IsPetPanelRedPointState())
|
| | | {
|
| | |
| | | EvolveTrainWinBtn.AddListener(OnClickEvolveTrainWin);
|
| | | _LeftBtn.AddListener(OnClickLeftBtn);
|
| | | _RightBtn.AddListener(OnClickRightBtn);
|
| | | m_FairyGrabBoss.AddListener(FairyGrabBoss);
|
| | | }
|
| | |
|
| | |
|
| | |
| | | private void OnClickLeftBtn()
|
| | | {
|
| | | FuncBtnGroup.TriggerLast();
|
| | | }
|
| | |
|
| | | private void FairyGrabBoss() |
| | | { |
| | | CloseChild();
|
| | | if (windowState == WindowState.Opened)
|
| | | {
|
| | | WindowCenter.Instance.OpenWithoutAnimation<FairyGrabBossWin>();
|
| | | }
|
| | | else
|
| | | {
|
| | | WindowCenter.Instance.Open<FairyGrabBossWin>(true);
|
| | | }
|
| | | functionOrder = m_FairyGrabBoss.order; |
| | | }
|
| | |
|
| | | private void OnClickPetPanel()
|
| | |
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<MountWin>();
|
| | | }
|
| | | WindowCenter.Instance.CloseImmediately<FairyGrabBossWin>();
|
| | | }
|
| | | }
|
| | | }
|