/// <summary> /// Initialises the component. /// </summary> public void Start() { this.cTerrain = this.GetComponent<TerrainComponent>(); // Initialise the noise and voxel generator var noiseGenerator = new NoiseGenerator(this.Seed, (byte)this.Octaves, this.BaseFrequency, this.Persistence); var voxelGenerator = new ChunkVoxelGenerator(noiseGenerator, this.SurfaceOrigin, this.SurfaceAmplitude); // Create the chunk loader this.ChunkLoader = new ChunkLoader(voxelGenerator); }
/// <summary> /// Initialises the component. /// </summary> public void Start() { this.cTerrain = this.GetComponent<TerrainComponent>(); }