// +++ life cycle +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ private void Start() { // TODO: implement Factory _spawnPositionCalculator = new RandomHeightGenerator(); _spawnPositionCalculator.SetStartPosition(_pipeSpawnPoint.position); _gapSizeGenerator = new RandomGapSizeGenerator(); _gapSizeGenerator.SetInitialGap(5f); }
public Planet(DoubleVector3 location, double radius, ITerrain terrain, IPlanetRenderer renderer, IHeightGenerator generator, ISettings settings, Statistics statistics) { _location = location; _radius = radius; _terrain = terrain; _renderer = renderer; _generator = generator; _settings = settings; _statistics = statistics; }
public HeightmapGenerator(IHeightGenerator heightGenerator) { _heightGenerator = heightGenerator; }