예제 #1
0
    public override void updateItem(GameObject item, int index)
    {
        RoleView button = item.GetComponent <RoleView> ();

        button.init(cards [index] as Card, cardChooseWin, (roleView) => {
            OnButtonClick(roleView);
        });
        button.tempGameObj.SetActive(resolveWin.isSelect(button.card));
    }
예제 #2
0
    public override void updateItem(GameObject item, int index)
    {
        //	base.updateItem (item, index);
        GoodsView button = item.GetComponent <GoodsView> ();

        button.init(equips [index] as Equip, false);
        button.fatherWindow    = chooseWindow;
        button.onClickCallback = () => {
            OnButtonClick(button);
        };
        button.tempGameObj.SetActive(window.isSelect(button.equip));
    }
예제 #3
0
 public void updateButton(Card newCard)
 {
     if (newCard == null)
     {
         cleanButton();
         return;
     }
     else
     {
         card = newCard;
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.CARDIMAGEPATH + card.getImageID(), cardImage);
         quality.spriteName = QualityManagerment.qualityIDToString(card.getQualityId());
         level.text         = card.getLevel().ToString();
         sign.spriteName    = CardManagerment.Instance.jobIDToString(card.getJob());
         resetCard();
         if (!win.isSelect(card))
         {
             isChoose = false;
             selectPic.gameObject.SetActive(false);
         }
         else
         {
             isChoose = true;
             selectPic.gameObject.SetActive(true);
         }
     }
 }
예제 #4
0
 public void updateButton(Equip newEquip)
 {
     if (newEquip == null)
     {
         cleanButton();
         return;
     }
     else
     {
         equip = newEquip;
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + equip.getIconId(), equipImage);
         level.text           = equip.getLevel().ToString();
         qualityBg.spriteName = QualityManagerment.qualityIDToIconSpriteName(equip.getQualityId());
         resetCard();
         if (!win.isSelect(equip))
         {
             isChoose = false;
             selectPic.gameObject.SetActive(false);
         }
         else
         {
             isChoose = true;
             selectPic.gameObject.SetActive(true);
         }
     }
 }