Ejemplo n.º 1
0
 public virtual void OnDeDelectObject()
 {
     if (selectedGLmesh != null)
     {
         selectedGLmesh.Destroy();
         selectedGLmesh = null;
     }
 }
Ejemplo n.º 2
0
 public virtual void OnSelectObject()
 {
     if (selectedGLmesh == null)
     {
         if (selectionSize == null || selectionSize == Vector3.zero)
         {
             selectionSize = Vector3.one;
         }
         selectedGLmesh = new GLOctaHedron(transform.position, selectionSize,selectableColor, this);
     }
 }