Ejemplo n.º 1
0
 /// <summary>
 /// Raises the new lane created event.
 /// </summary>
 /// <param name="newLane">New lane.</param>
 private void OnNewLaneCreated(Lane newLane)
 {
     if (m_activeLaneList.Count == m_activeLaneCount)
     {
         Lane oldLane = m_activeLaneList[0];
         m_activeLaneList.RemoveAt(0);
         if (oldLane != newLane)
         {
             oldLane.Deactivate();
         }
         m_lowestRowCoord++;
     }
     m_activeLaneList.Add(newLane);
     m_highestRowCoord++;
 }