Exemplo n.º 1
0
 private void SelectObject(MObject obj)
 {
     if (curObj != obj)
     {
         if (curObj != null)
         {
             curObj.InactiveTextMesh();
         }
         if (obj != null)
         {
             obj.ActiveTextMesh();
             obj.SetMeshText("按右手手柄侧键,\n删除当前选中图元");
         }
         curObj = obj;
     }
 }
Exemplo n.º 2
0
 private void SelectObject(MObject obj)
 {
     if (curObj != obj)
     {
         if (curObj != null)
         {
             curObj.ResetStatus();
             curObj.InactiveTextMesh();
         }
         if (obj != null)
         {
             obj.Select();
             obj.ActiveTextMesh();
             obj.SetMeshText("按右手手柄侧键,\n保存当前选中模型");
         }
         curObj = obj;
     }
 }