示例#1
0
    // Use this for initialization
    void Start()
    {
        InitializeMaze();

        MazeAlgorithm ma = new BackTrackAlgorithm(mazeCells);

        ma.CreateMaze();
    }
示例#2
0
    IEnumerator Repetir()
    {
        yield return(new WaitForSeconds(2f));

        DeleteAll();

        InitializeMaze();

        MazeAlgorithm ma = new BackTrackAlgorithm(mazeCells);

        ma.CreateMaze();
    }