public void ValidateSkill3() { if (this._heroInfo != null && this._heroInfo.actorHero) { this._skill3Bg.CustomSetActive(true); SkillSlot[] skillSlotArray = this._heroInfo.actorHero.handle.SkillControl.SkillSlotArray; SkillSlot skillSlot = skillSlotArray[3]; if (skillSlot != null && skillSlot.IsUnLock() && skillSlot.IsCDReady) { this._skill3Canbe.CustomSetActive(true); } else { this._skill3Canbe.CustomSetActive(false); } } else { this._skill3Bg.CustomSetActive(false); this._skill3Canbe.CustomSetActive(false); } }
public void Update() { if (null != this.heroInfoList) { int count = this.m_teamHeroList.Count; CUIListElementScript elemenet = null; int num2 = 0; int index = 0; index = 0; while (index < count) { PoolObjHandle <ActorRoot> handle = this.m_teamHeroList[index]; elemenet = this.heroInfoList.GetElemenet(index); if (((handle != 0) && (handle.handle.SkillControl != null)) && (null != elemenet)) { SkillSlot slot = null; if ((handle.handle.SkillControl.TryGetSkillSlot(SkillSlotType.SLOT_SKILL_3, out slot) && slot.IsUnLock()) && slot.IsCDReady) { elemenet.GetWidget(6).CustomSetActive(true); } else { elemenet.GetWidget(6).CustomSetActive(false); } num2 = this.m_heroInfoChangeBitsList[index]; if (num2 != 0) { if ((num2 & 1) != 0) { Image hpImage = this.GetHpImage(index); if (hpImage != null) { hpImage.fillAmount = handle.handle.ValueComponent.GetHpRate().single; } num2 &= -2; } Text reviveText = this.GetReviveText(index); if ((reviveText != null) && ((num2 & 2) != 0)) { reviveText.text = SimpleNumericString.GetNumeric(Mathf.RoundToInt(handle.handle.ActorControl.ReviveCooldown * 0.001f)); } this.m_heroInfoChangeBitsList[index] = num2; } } index++; } int num4 = this.m_enemyHeroList.Count; for (index = 0; index < num4; index++) { if ((this.heroInfoList.GetElemenet(index + 5) != null) && (this.m_enemyHeroList[index] != 0)) { Text text2 = this.GetReviveText(index + 5); if (text2 != null) { PoolObjHandle <ActorRoot> handle2 = this.m_enemyHeroList[index]; text2.text = SimpleNumericString.GetNumeric(Mathf.RoundToInt(handle2.handle.ActorControl.ReviveCooldown * 0.001f)); } } } } }
public void Update() { if (null == this.heroInfoList) { return; } int count = this.m_teamHeroList.get_Count(); for (int i = 0; i < count; i++) { PoolObjHandle <ActorRoot> ptr = this.m_teamHeroList.get_Item(i); CUIListElementScript elemenet = this.heroInfoList.GetElemenet(i); if (ptr && ptr.handle.SkillControl != null && !(null == elemenet)) { SkillSlot skillSlot = null; if (ptr.handle.SkillControl.TryGetSkillSlot(SkillSlotType.SLOT_SKILL_3, out skillSlot) && skillSlot.IsUnLock() && skillSlot.IsCDReady) { elemenet.GetWidget(6).CustomSetActive(true); } else { elemenet.GetWidget(6).CustomSetActive(false); } int num = this.m_heroInfoChangeBitsList[i]; if (num != 0) { if ((num & 1) != 0) { Image hpImage = this.GetHpImage(i); if (hpImage != null) { hpImage.set_fillAmount(ptr.handle.ValueComponent.GetHpRate().single); } num &= -2; } Text reviveText = this.GetReviveText(i); if (reviveText != null && (num & 2) != 0) { reviveText.set_text(SimpleNumericString.GetNumeric(Mathf.RoundToInt((float)ptr.handle.ActorControl.ReviveCooldown * 0.001f))); } this.m_heroInfoChangeBitsList[i] = num; } } } int count2 = this.m_enemyHeroList.get_Count(); for (int j = 0; j < count2; j++) { CUIListElementScript elemenet2 = this.heroInfoList.GetElemenet(j + 5); if (elemenet2 != null && this.m_enemyHeroList.get_Item(j)) { Text reviveText2 = this.GetReviveText(j + 5); if (reviveText2 != null) { reviveText2.set_text(SimpleNumericString.GetNumeric(Mathf.RoundToInt((float)this.m_enemyHeroList.get_Item(j).handle.ActorControl.ReviveCooldown * 0.001f))); } } } }