public void EndBuff(PlayerBuff buff) { PlayerBuff oldBuff = playerBuffs.FirstOrDefault(o => o.BuffName == buff.BuffName); if (oldBuff != null) { oldBuff.EndBuff(); } }