private void SetControllerInputActive(bool active)
    {
        if (controllerMain != null)
        {
            controllerMain.SetActive(active);
        }
        if (controllerPointer == null)
        {
            return;
        }
        controllerPointer.SetActive(active);

        // Update the pointer type only if this is currently activated.
        if (!active)
        {
            return;
        }
        GvrLaserPointer pointer =
            controllerPointer.GetComponentInChildren <GvrLaserPointer>(true);

        if (pointer != null)
        {
            pointer.SetAsMainPointer();
        }
    }
 private void SetClickMenuEnabled(bool enabled)
 {
     clickMenu.gameObject.SetActive(enabled);
     controller.gameObject.SetActive(enabled);
     if (enabled)
     {
         pointer.SetAsMainPointer();
     }
 }
        private void SetupPointer()
        {
            CreatePointer();

            pointer.SetActive(true);

            GvrLaserPointer laser = pointer.GetComponentInChildren <GvrLaserPointer>();

            Assert.IsNotNull(laser);
            laser.SetAsMainPointer();

            // Turn off tooltips.
            GvrTooltip tooltip = pointer.GetComponentInChildren <GvrTooltip>();

            if (tooltip != null)
            {
                tooltip.transform.parent.gameObject.SetActive(false);
            }
        }