示例#1
0
    private void ConnectChunk(int indexThread, long timeGeneration)
    {
        Chunk chunk = Generator.GetChunk();

        Separator.AddChild(chunk.Base);

        Console.WriteLine($"Generation complite in thread: {indexThread}, time: {timeGeneration} ms. ");
    }
示例#2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.GetComponent <Player>())
     {
         GameObject chunkInst = Instantiate(chunkGen.GetChunk().gameObject, spawnPoint.position, transform.rotation);
         // GameObject volumeInst = Instantiate(chunkGen.GetVolume(), transform.position, transform.rotation);
     }
 }