Ejemplo n.º 1
0
 protected virtual void OnDisable()
 {
     if (parent)
     {
         parent.SetPlayAreaCursorCollision(false);
     }
 }
Ejemplo n.º 2
0
 private void OnTriggerStay(Collider collider)
 {
     if (parent.enabled && parent.gameObject.activeInHierarchy && ValidTarget(collider))
     {
         parent.SetPlayAreaCursorCollision(true);
     }
 }
Ejemplo n.º 3
0
 private void TurnOnBeam(uint index)
 {
     beamEnabledState++;
     if (enabled && !isActive && CanActivate())
     {
         if (playAreaCursor)
         {
             playAreaCursor.SetPlayAreaCursorCollision(false);
         }
         controllerIndex = index;
         TogglePointer(true);
         isActive             = true;
         destinationSetActive = true;
     }
 }
Ejemplo n.º 4
0
        private void TurnOnBeam(uint index)
        {
            beamEnabledState++;
            if (enabled && !isActive && CanActivate())
            {
                if (playAreaCursor)
                {
                    playAreaCursor.SetPlayAreaCursorCollision(false);
                }
                controllerIndex = index;
                TogglePointer(true);
                isActive             = true;
                destinationSetActive = true;

                if (pointerOriginTransformFollowGameObject != null)
                {
                    pointerOriginTransformFollowGameObject.SetActive(true);
                    pointerOriginTransformFollow.Follow();
                }
            }
        }