示例#1
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public void Update(GPS.Coord latitude, GPS.Coord longitude, Vector3 pos)
    {
        if (m_latRing != null)
        {
            m_latRing.latitude = latitude.deg;
        }

        if (m_lngRing != null)
        {
            m_lngRing.longitude = longitude.deg;
        }

        if (m_spot != null)
        {
            m_spot.transform.position = pos;

            m_spot.transform.LookAt(pos * 2.0f);
        }
    }
示例#2
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public void UpdateCoordSelection(GPS.Coord latitude, GPS.Coord longitude)
    {
        m_UI.latitude = string.Format("{0}N", latitude.As(m_options.coordUnit).ToString());

        m_UI.longitude = string.Format("{0}E", longitude.As(m_options.coordUnit).ToString());
    }