private void AbortBuffInternal(PlayerBuff buff) { if (Buffs.Contains(buff)) { buff.End(); Buffs.Remove(buff); } }
private void ProcessBuffs() { PlayerBuff buff = null; while (Buffs.Any() && (buff = Buffs.Last()).ToEnd < Mathf.Epsilon) { buff.End(); Buffs.Remove(buff); } }