public void removeLivingEntity(LivingEntity entity) { if (entity.GetType() == typeof(Monster)) { removeLivingEntity((Monster)entity); return; } livingList.Remove(entity); }
public void addLivingEntity(LivingEntity entity) { if(entity.GetType() == typeof(Monster)){ addLivingEntity((Monster)entity); return; } livingList.Add(entity); }