//public string despGeneral="";
		
		public UnitStat(){
			stun=new Stun();
			crit=new Critical();
			slow=new Slow();
			dot=new Dot();
			buff=new Buff();
		}
예제 #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;
 }
예제 #3
0
 public void UnBuff(Buff buff)
 {
     if(!activeBuffList.Contains(buff)) return;
     activeBuffList.Remove(buff);
     UpdateBuffStat();
 }
예제 #4
0
        public void Buff(Buff buff)
        {
            if(activeBuffList.Contains(buff)) return;

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