예제 #1
0
 public void Destroy()
 {
     PauseThreads = true;
     ExitThreads  = true;
     GeneratorThread.Join();
     RebuildThread.Join();
     WaterUpdateThread.Join();
     //ChunkData.ChunkMap.Clear();
 }
예제 #2
0
 public void Destroy()
 {
     PauseThreads = true;
     ExitThreads  = true;
     RebuildEvent.Set();
     RebuildThread.Join();
     WaterUpdateThread.Join();
     ChunkUpdateThread.Join();
     foreach (var item in ChunkData.ChunkMap)
     {
         item.Destroy();
     }
 }