public void onObjectSelected(NavMesh obj)
 {
     if (Util.isObject(selectedObject))
         deselect();
     selectedObject = obj;
     if (Util.isObject(obj))
         {
         selectMesh(obj);
         NavInspector NavInspector = "NavInspector";
         NavInspector.inspect(obj);
         }
 }
 public void selectObject(NavMesh obj)
 {
     NavTreeView NavTreeView = "NavTreeView";
     NavTreeView.clearSelection();
     if (Util.isObject(obj))
         NavTreeView.selectItem(obj);
     onObjectSelected(obj);
 }