protected override void OnEnable()
{
base.OnEnable();
// hack to stop bug that disables and enables this tool the first time the panel is clicked
if (Time.realtimeSinceStartup - time < 0.2f)
{
time = 0;
return;
}
m_hoveredNode = m_hoveredSegment = 0;
m_selectedNode = 0;
m_selectedMarker = null;
m_selectedLaneMarkers.Clear();
m_segments.Clear();
m_hoveredLaneMarkers.Clear();
if (OnEndLaneCustomization != null)
OnEndLaneCustomization();
}