private void SetAlmightyIcon() { List <EvolutionData.MonsterEvolveItem> itemList = this.medList_cache[0].itemList; for (int i = 0; i < itemList.Count; i++) { VersionUpItem vupItem = this.verUpItemList[i]; bool flag; if (vupItem.AlmightySoulData != null) { flag = true; } else { HaveSoulData haveSoulData = null; flag = VersionUpMaterialData.CanChangeToAlmighty(this.almHasList_cache, vupItem.baseSoulData.soulM.soulId, vupItem.NeedNum, ref haveSoulData); } if (flag) { vupItem.lbSelect.gameObject.SetActive(true); vupItem.SetTouchAct_S(delegate { this.SHowAlmightySelect(vupItem); }); } else { vupItem.lbSelect.gameObject.SetActive(false); vupItem.SetTouchAct_S(null); } } }
private void ClearItemIcon() { for (int i = 0; i < this.verUpItemList.Count; i++) { VersionUpItem versionUpItem = this.verUpItemList[i]; versionUpItem.gameObject.SetActive(true); versionUpItem.spIcon.enabled = true; versionUpItem.texIcon.enabled = false; versionUpItem.lbSelect.gameObject.SetActive(false); versionUpItem.spNumPlate.gameObject.SetActive(false); versionUpItem.lbNum.gameObject.SetActive(false); versionUpItem.SetTouchAct_S(null); versionUpItem.SetTouchAct_L(null); } }