public override void DoClickEvent()
    {
        base.DoClickEvent();
        if (isChoose == false)
        {
            win.onSelectEquip(equip);
            selectOn();
        }
        else
        {
            win.offSelectEquip(equip);
            selectOff();
        }

        win.changeButton();
    }
Exemple #2
0
 void OnButtonClick(GoodsView view)
 {
     if (window.isSelect(view.equip))
     {
         window.offSelectEquip(view.equip);
         view.tempGameObj.SetActive(false);
     }
     else if (window.selectMagicList.Count + window.selectedCardList.Count + window.selectedEquipList.Count < 8)
     {
         window.onSelectEquip(view.equip);
         view.tempGameObj.SetActive(true);
     }
     else if (window.selectMagicList.Count + window.selectedCardList.Count + window.selectedEquipList.Count >= 8)
     {
         TextTipWindow.ShowNotUnlock(Language("resolveChooseMax_2"));
     }
     MaskWindow.UnlockUI();
 }