Example #1
0
    public void Start()
    {
        gaController            = GetComponent <GAController>();
        pathCreator             = GetComponent <PathCreator>();
        pathPlacer              = GetComponent <PathPlacer>();
        pointsList              = new List <Point>();
        stationList             = new List <Point>();
        gaController.tspSolved += StationsSolved;

        DeleteGrid();
        RandomSeed();
        CreateGrid();
        CalculateStations(numberOfStations);
        SolveStations();
    }
Example #2
0
 private void OnEnable()
 {
     placer = (PathPlacer)target;
 }