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. "); }
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); } }