// 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); } }
// 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); } }