/// <summary> /// Adds all the solar bodies in the system to a list of navigable gameobjects /// </summary> void FillSolarBodies() { solarBodies = new List <GameObject>(); solarBodies.Add(solarManager.getSun()); foreach (SolarBody solarBody in solarManager.GetSolarBodies()) { solarBodies.Add(solarBody.gameObject); AddSatellites(solarBody); } }
/// <summary> /// Draws a solarBody editor box /// </summary> bool DrawSunBox() { SolarBody sun = solarManager.getSun().GetComponent <SolarBody>(); GUILayout.BeginHorizontal("box"); if (DrawSolarBodyMain(sun)) { return(REFRESH_EDITOR); } GUILayout.EndHorizontal(); return(!REFRESH_EDITOR); }