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