Example #1
0
    public void InitWorldFromConfig(WorldGenConfig config)
    {
        if (config.randomSeed != 0)
        {
            Debug.LogWarning(" ## set world gen random seed to " + config.randomSeed);
            UnityEngine.Random.InitState(config.randomSeed);
        }

        InitWorld(config.worldType, config.numCols, config.numRows, config.size, config.tileSeed);
    }
Example #2
0
        // public Tilemap tilemap;
        // public TileBase tile;

        protected WorldGenerator()
        {
            config    = GenerationState.get().worldGenConfig;
            container = GenerationState.get().worldGenContainer;
        }