protected void DeleteParented() { if (parented != null) { factory.DeleteBuilding(parented); Unparent(); } }