Beispiel #1
0
    public void Generate()
    {
        var sw = Stopwatch.StartNew();

        ClearMap();
        m_biomeManager.Generate();

        for (int i = -1; i <= 1; ++i)
        {
            for (int j = -1; j <= 1; ++j)
            {
                SpawnChunkAt(i, j);
            }
        }

        sw.Stop();
        Debug.Log(string.Format("WorldMap: Initial map generation took {0} ms", sw.ElapsedMilliseconds));
    }