예제 #1
0
 void CloseGap(RouteMaster m, bool atTheBegining)
 {
     if (m != null)
     {
         if (m.Routes.Count > 1)
         {
             if (atTheBegining == false)
             {
                 Vector2 lastpoint = m.Routes.Peek().IndividualPoints[m.Routes.Peek().IndividualPoints.Count - 1];
                 m.lRoutes()[0].controlPoints[0].position = lastpoint;
             }
             else
             {
                 Vector2 firstPoint = m.lRoutes()[0].controlPoints[0].position;
                 m.Routes.Peek().controlPoints[3].position = firstPoint;
             }
         }
     }
 }
예제 #2
0
    private void Start()
    {
        if (routeMaster != null)
        {
            Routes = routeMaster.lRoutes();
        }

        foreach (var route in Routes)
        {
            EverySinglePoint.AddRange(route.IndividualPoints);
        }
        //routeIndex = 0;
        //tParam = 0;
    }