/** * @brief Generator 객체 생성 */ private void OnEnable() { if (genPlanet == null) { genPlanet = VoxelPlanetGenerator.GetPlanetGenerator(); } if (genTerrainInfo == null) { genTerrainInfo = new TerrainInfo(); } if (genCloudInfo == null) { genCloudInfo = new CloudInfo(); } if (fillArea == null) { fillArea = new FillArea(); } if (noiseArea == null) { noiseArea = new NoiseArea(); } }
public NoiseArea(NoiseArea copyThis) : base(copyThis) { this.blockRate = copyThis.blockRate; this.desertRate = copyThis.desertRate; this.grassRate = copyThis.grassRate; this.cloudRate = copyThis.cloudRate; this.frequency = copyThis.frequency; this.persistence = copyThis.persistence; this.octave = copyThis.octave; }