Ejemplo n.º 1
0
 public override void DoClickEvent()
 {
     base.DoClickEvent();
     if (isChoose == false)
     {
         win.onSelectCard(card);
         selectOn();
     }
     else
     {
         win.offSelectCard(card);
         selectOff();
     }
     win.changeButton();
 }
Ejemplo n.º 2
0
 void OnButtonClick(RoleView view)
 {
     if (GuideManager.Instance.isEqualStep(114005000))
     {
         GuideManager.Instance.doGuide();
         GuideManager.Instance.guideEvent();
     }
     if (resolveWin.isSelect(view.card))
     {
         resolveWin.offSelectCard(view.card);
         view.tempGameObj.SetActive(false);
     }
     else if (resolveWin.selectMagicList.Count + resolveWin.selectedCardList.Count + resolveWin.selectedEquipList.Count < 8)
     {
         if (view.card.state == 4)
         {
             MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("tips_001"));
         }
         else if (view.card.state == 1)
         {
             MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("tips_002"));
         }
         else if (view.card.state == 5)
         {
             MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage("tips_003"));
         }
         else
         {
             resolveWin.onSelectCard(view.card);
             view.tempGameObj.SetActive(true);
         }
     }
     else if (resolveWin.selectMagicList.Count + resolveWin.selectedCardList.Count + resolveWin.selectedEquipList.Count >= 8)
     {
         TextTipWindow.ShowNotUnlock(Language("resolveChooseMax_1"));
     }
     MaskWindow.UnlockUI();
 }