Пример #1
0
    /// <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);
        }
    }
Пример #2
0
    /// <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);
    }