Exemplo n.º 1
0
 /// <summary>
 /// Stops the rendering process and all threads
 /// </summary>
 public void ShutDown()
 {
     shuttingDown = true;
     traversalThread.Stop();
     lock (traversalThread) {
         Monitor.PulseAll(traversalThread);
     }
     loadingThread.Stop();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Stops the rendering process and all threads
 /// </summary>
 public void ShutDown()
 {
     Debug.Log("Renderer Shutting down");
     shuttingDown = true;
     traversalThread.Stop();
     lock (traversalThread) {
         Monitor.PulseAll(traversalThread);
     }
     loadingThread.Stop();
     foreach (Node node in rootNodes)
     {
         Debug.Log(node);
         lock (node) {
             node.RemoveAllGameObjects(config);
         }
     }
 }