public void RemoveMotorComponent(MotorComponent child) { if (MotorComponents.Contains(child)) { MotorComponents.Remove(child); MachComponents.Remove(child); } }
public void AddMotorComponent(MotorComponent child) { if (!MotorComponents.Contains(child)) { MotorComponents.Add(child); MachComponents.Add(child); } }