Beispiel #1
0
    // The mesh goes red when the mouse is over it...
    void OnMouseEnter()
    {
        if (!m_hasData)
        {
            MakeStringData();
        }

        rend.material.color = Color.red;
        if (m_ui != null)
        {
            m_ui.UpdateUI(m_dataAsString);
        }
    }
Beispiel #2
0
    // The mesh goes red when the mouse is over it...
    void OnMouseEnter()
    {
        if (!m_hasData)
        {
            m_dataAsString = StationData.Statistics(m_stationData, m_date);
            m_hasData      = true;
        }


        rend.material.color = Color.red;
        if (m_ui != null)
        {
            m_ui.UpdateUI(m_dataAsString);
        }
    }