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