Пример #1
0
        private void RunLightingGeneration(Vector3Int chunkId)
        {
            var job = lightManager.CreateGenerationJob(chunkId);

            if (lightManager.Parallel)
            {
                while (!job.Done)
                {
                    //busy wait
                }
            }
            else
            {
                Assert.IsTrue(job.Done, "Job not done after creation");
            }
            lightManager.ApplyGenerationResult(chunkId, job.Result);
            fullyGenerated.Add(chunkId);
        }