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)); }
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)); }
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); } } }
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); } } }