示例#1
0
    void ResetAll()
    {
        for (int i = 0; i < mapController.spots.GetLength(0); i++)
        {
            for (int j = 0; j < mapController.spots.GetLength(1); j++)
            {
                Destroy(mapController.spots [i, j].gameObject);
            }
        }

        mapController.Start();

        openSet.Clear();
        closedSet.Clear();
        pathFound = false;
    }