public BuffInstance(Buff buff, Character source = null) { this.buff = buff; this.source = source; remainingTime = buff.buffDuration; }
public void AddBuff(Buff buff, Character source = null) { buffs.Add(new BuffInstance(buff, source)); buff.OnGained(source, this); }