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); }
// public Tilemap tilemap; // public TileBase tile; protected WorldGenerator() { config = GenerationState.get().worldGenConfig; container = GenerationState.get().worldGenContainer; }