Ejemplo n.º 1
0
    void Start()
    {
        //To get the same random numbers each time we run the script
        Random.InitState(100);

        caveGenerator = new CaveGeneratorExpandedQ6(randomFillPercent, gridSize);
        caveGenerator.RandomizeMap();

        //For testing that init is working
        GenerateAndDisplayTexture(caveGenerator.GetMap());

        //Start the simulation
        StartCoroutine(SimulateCavePattern());

        if (player == null)
        {
            player = GameObject.Find("Player");
        }
    }