//public string despGeneral="";
		
		public UnitStat(){
			stun=new Stun();
			crit=new Critical();
			slow=new Slow();
			dot=new Dot();
			buff=new Buff();
		}
Esempio n. 2
0
 public Buff Clone()
 {
     Buff clone=new Buff();
     clone.effectID=effectID;
     clone.damageBuff=damageBuff;
     clone.cooldownBuff=cooldownBuff;
     clone.rangeBuff=rangeBuff;
     clone.criticalBuff=criticalBuff;
     clone.hitBuff=hitBuff;
     clone.dodgeBuff=dodgeBuff;
     clone.regenHP=regenHP;
     return clone;
 }
Esempio n. 3
0
 public void UnBuff(Buff buff)
 {
     if(!activeBuffList.Contains(buff)) return;
     activeBuffList.Remove(buff);
     UpdateBuffStat();
 }
Esempio n. 4
0
        public void Buff(Buff buff)
        {
            if(activeBuffList.Contains(buff)) return;

            activeBuffList.Add(buff);
            UpdateBuffStat();
        }
		public void UnBuff(Buff buff){
			if(!activeBuffList.Contains(buff)){
				//Debug.Log("not contain buff");
				return;
			}
			
			activeBuffList.Remove(buff);
			UpdateBuffStat();
		}
		public void Buff(Buff buff){
			if(activeBuffList.Contains(buff)){
				//Debug.Log("contain buff");
				return;
			}
			
			activeBuffList.Add(buff);
			UpdateBuffStat();
		}