Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        InitializeMaze();

        MazeAlgorithm ma = new BackTrackAlgorithm(mazeCells);

        ma.CreateMaze();
    }
Exemplo n.º 2
0
    IEnumerator Repetir()
    {
        yield return(new WaitForSeconds(2f));

        DeleteAll();

        InitializeMaze();

        MazeAlgorithm ma = new BackTrackAlgorithm(mazeCells);

        ma.CreateMaze();
    }