public void Dispose()
 {
     if (obstacleManager != null)
     {
         obstacleManager.Dispose();
         obstacleManager = null;
     }
 }