void sceneController_OnSceneUnloading(SceneController controller, Engine.ObjectManagement.SimScene scene)
 {
     if (debugSurface != null)
     {
         renderer.destroyDebugDrawingSurface(debugSurface);
     }
 }
 private void destroyDrawingSurface()
 {
     if (drawingSurface != null)
     {
         rendererPlugin.destroyDebugDrawingSurface(drawingSurface);
         drawingSurface = null;
     }
 }
 public void destroyDebugInterface(RendererPlugin rendererPlugin, SimSubScene subScene)
 {
     if (drawingSurface != null)
     {
         rendererPlugin.destroyDebugDrawingSurface(drawingSurface);
         drawingSurface = null;
     }
 }