Exemplo n.º 1
0
    void Awake()
    {
        vcm = GetComponent <VisualChunkManager>();

        Random.InitState(seed);
        offset = Random.Range(1000, 999999);
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     chunks             = new Dictionary <Vector3Int, Chunk>();
     chunkList          = new List <Chunk>();
     chunkThreader      = GetComponent <ChunkThreader>();
     visualChunkManager = GetComponent <VisualChunkManager>();
     tg = GetComponent <TerrainGenerator>();
 }