public void OnSelect()
        {
            if (!OtherUserSelected)
            {
                selected = selectionHandler.GameObjectSelect(transform.gameObject, sessionManager.me) && !selected;

                // If the user is in placing mode, display the spatial mapping mesh.
                if (selected)
                {
                    gui.SetActive(true);
                    sessionManager.UpdateSelectedFeature(Feature, true);
                    coneRender.material = selectedMat;
                }
                // If the user is not in placing mode, hide the spatial mapping mesh.
                else
                {
                    coneRender.material = oldMat;
                    sessionManager.UpdateSelectedFeature(Feature, false);
                    gui.SetActive(false);
                    var userSelectedObject = selectionHandler.GetSelectedUser(transform.gameObject);
                    if (userSelectedObject == null)
                    {
                        return;
                    }
                    if (userSelectedObject.Id == sessionManager.me.Id)
                    {
                        selectionHandler.releaseObj(sessionManager.me);
                    }
                }
            }
        }