コード例 #1
0
 void Update()
 {
     if (chunkGen != null && !isChunkGenDone)
     {
         if (chunkGen.Update())
         {
             isChunkGenDone = true;
         }
     }
 }
コード例 #2
0
 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;
     }
 }