void Update() { if (chunkGen != null && !isChunkGenDone) { if (chunkGen.Update()) { isChunkGenDone = true; } } }
private void ActiveManager_OnCycle(object sender, System.EventArgs e) { if (activeGenerator == null) { throw new Exception("Tried to poll null terrain generator!"); } activeGenerator.Update(); if (activeGenerator.IsDone) { InfiniManager.activeManager.OnCycle -= ActiveManager_OnCycle; activeGenerator = null; } }