private IEnumerator WaitAndUpdate(ShipConstruct ship) { while (--update_wait_frames > 0) { yield return null; } PartResourcesChanged (); }