Пример #1
0
 public void Destroy()
 {
     PauseThreads = true;
     ExitThreads  = true;
     RebuildThread.Abort();
     WaterUpdateThread.Join();
     ChunkUpdateThread.Abort();
 }
Пример #2
0
 public void Destroy()
 {
     PauseThreads = true;
     ExitThreads  = true;
     GeneratorThread.Join();
     RebuildThread.Join();
     WaterUpdateThread.Join();
     //ChunkData.ChunkMap.Clear();
 }
Пример #3
0
 public void Destroy()
 {
     PauseThreads = true;
     ExitThreads  = true;
     RebuildEvent.Set();
     RebuildThread.Join();
     WaterUpdateThread.Join();
     ChunkUpdateThread.Join();
     foreach (var item in ChunkData.ChunkMap)
     {
         item.Destroy();
     }
 }