Exemple #1
0
    private void InstantiateFOVChunks()
    {
        Debug.Log($"New {_chunksInFOV} road chunks created.");

        for (int i = 0; i < _chunksInFOV; i++)
        {
            _initChunkGenerator.GenerateChunk(_position, transform);
            _position += Vector3.forward * _roadMovement;
        }
    }
Exemple #2
0
 private void SpawnChunk()
 {
     _chunkGenerator.GenerateChunk(_position, transform);
 }