// Token: 0x0600A6AE RID: 42670 RVA: 0x002EC030 File Offset: 0x002EA230 public void SetBuff(BattleActor a, List <ClientActorBuff> buffs) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetBuffBattleActorList ` 1_hotfix != null) { this.m_SetBuffBattleActorList ` 1_hotfix.call(new object[] { this, a, buffs }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; int i = 0; if (buffs != null) { foreach (ClientActorBuff clientActorBuff in buffs) { if (clientActorBuff.m_buffState.m_buffInfo.IconDisplay) { if (a.IsBuffEffective(clientActorBuff.m_buffState)) { this.m_buffImages[i].gameObject.SetActive(true); this.m_buffImages[i].sprite = AssetUtility.Instance.GetSprite(clientActorBuff.m_buffState.m_buffInfo.Icon); if (clientActorBuff.m_buffState.m_time > 0 && !clientActorBuff.m_buffState.m_buffInfo.IsInfiniteTime()) { this.m_buffTexts[i].gameObject.SetActive(true); this.m_buffTexts[i].text = clientActorBuff.m_buffState.m_time.ToString(); } else { this.m_buffTexts[i].gameObject.SetActive(false); } i++; if (i >= this.m_buffImages.Length) { break; } } } } } while (i < this.m_buffImages.Length) { this.m_buffImages[i].gameObject.SetActive(false); i++; } }