public void changeButton() { List <PrizeSample> awardList = new List <PrizeSample> (); awardList.Clear(); for (int i = 0; i < selectList.Count; i++) { if (selectList [i] is Card) { Card card = selectList[i] as Card; PrizeSample[] prizeSamples = card.getResolveResults(); if (prizeSamples != null) { for (int j = 0; j < prizeSamples.Length; j++) { awardList.Add(prizeSamples[j]); } } } if (selectList [i] is Equip) { Equip equip = selectList[i] as Equip; PrizeSample[] prizeSamples = equip.getResolveResults(); if (prizeSamples != null) { for (int j = 0; j < prizeSamples.Length; j++) { awardList.Add(prizeSamples[j]); } } } if (selectList[i] is MagicWeapon) { MagicWeapon ms = selectList[i] as MagicWeapon; PrizeSample[] prizeSamples = ms.getReSourcePrizes(); if (prizeSamples != null) //固定的奖励 { for (int j = 0; j < prizeSamples.Length; j++) { awardList.Add(prizeSamples[j]); } } } } updateInfo(awardList); for (int i = 0; i < resolveEffect.iconText.Length; i++) { if (resolveEffect.iconText [i].text.Contains("+")) { buttonSell.disableButton(false); break; } else if (i == resolveEffect.iconText.Length - 1) { buttonSell.disableButton(true); } } }