public bool CheckHasSuchBuff(Affix.EffectType effectType) { for (int i = 0; i < effectList.Count; i++) { if (effectList[i].affix.effectType == effectType) { return(true); } } return(false); }
public bool GetBuff(Affix.EffectType effectType) { foreach (var ef in effectList) { if (ef.affix.effectType == effectType) { return(true); } } return(false); }
public void RemoveBuff(Affix.EffectType type) { foreach (var a in effectList) { if (a.affix.effectType == type) { a.IsDie = true; break; } } }
public Type GetBuffInstance(Affix.EffectType type) { return(Type.GetType("MyLib." + type.ToString())); }
public static void RemoveSkillBuff(GameObject who, Affix.EffectType effectType) { who.GetComponent <BuffComponent>().RemoveBuff(effectType); }