public void Init(SideEffectExecute buffSee, int buffId) { Cur_Buff = ((PlayerBuffSideEffects)buffSee.SideEffectBases[0]); int buffValue = GetBuffValue(buffSee, Cur_Buff); BuffValueText.text = buffValue == 0 ? "" : buffValue.ToString(); BuffId = buffId; ClientUtils.ChangeImagePicture(Image, Cur_Buff.M_SideEffectParam.GetParam_ConstInt("BuffPicId")); Color buffColor = ClientUtils.HTMLColorToColor(AllBuffs.GetBuff((Cur_Buff.Name)).M_SideEffectParam.GetParam_String("BuffColor")); BuffBloom.color = buffColor; BuffDescText.color = buffColor; BuffValuePanel.enabled = Cur_Buff.M_SideEffectParam.GetParam_Bool("HasNumberShow"); BuffValueText.enabled = Cur_Buff.M_SideEffectParam.GetParam_Bool("HasNumberShow"); BuffAnim.SetTrigger("Add"); BuffDescText.text = Utils.TextMeshProColorStringConvertToText(Cur_Buff.GenerateDesc()); }
public void OnLanguageChange() { BuffDescText.text = Utils.TextMeshProColorStringConvertToText(Cur_Buff.GenerateDesc()); }