/// <summary> /// Takes the provided solarBody and updates their properties and sattelites /// </summary> /// <param name="solarBody"></param> void updateSolarBody(SolarBody solarBody) { CheckSolarBody(solarBody); solarBody.ScaleBodyMass(); updateSatellites(solarBody); }
/// <summary> /// Draws the mass field for a solar body /// </summary> /// <param name="solarBody"></param> void DrawMassField(SolarBody solarBody) { GUILayout.BeginHorizontal(); GUILayout.Space(5); GUILayout.Label("Mass"); solarBody.mass = EditorGUILayout.IntField(solarBody.mass); solarBody.ScaleBodyMass(); GUILayout.Space(5); GUILayout.EndHorizontal(); }