Ejemplo n.º 1
0
 protected virtual void HandleEnabledPointer()
 {
     if (EnabledPointerRenderer())
     {
         pointerRenderer.InitalizePointer(this, targetListPolicy, navMeshCheckDistance, headsetPositionCompensation);
         pointerRenderer.UpdateRenderer();
         if (!IsPointerActive())
         {
             bool currentPointerVisibility = pointerRenderer.IsVisible();
             pointerRenderer.ToggleInteraction(currentPointerVisibility);
         }
         CheckHoverSelect();
     }
 }
Ejemplo n.º 2
0
 protected virtual void Update()
 {
     CheckButtonSubscriptions();
     if (EnabledPointerRenderer())
     {
         pointerRenderer.InitalizePointer(this, invalidListPolicy, navMeshCheckDistance, headsetPositionCompensation);
         pointerRenderer.UpdateRenderer();
         if (!IsPointerActive())
         {
             bool currentPointerVisibility = pointerRenderer.IsVisible();
             pointerRenderer.ToggleInteraction(currentPointerVisibility);
         }
     }
 }