예제 #1
0
        public bool IsRaycastHit(out CursorType cursorType, out RaycastableType raycastableType)
        {
            if (_pickup.CanBePickedUp())
            {
                cursorType = CursorType.Pickup;
            }
            else
            {
                cursorType = CursorType.FullPickup;
            }

            raycastableType = RaycastableType.ProximityPickup;
            return(true);
        }
예제 #2
0
        public bool IsRaycastHit(out CursorType cursorType, out RaycastableType raycastableType)
        {
            if (_pickup.CanBePickedUp())
            {
                cursorType = CursorType.Pickup;
            }
            else
            {
                cursorType = CursorType.FullPickup;
            }

            raycastableType = RaycastableType.ClickablePickup;

            if (Input.GetMouseButtonDown(0))
            {
                _pickup.PickupItem();
            }

            return(true);
        }
예제 #3
0
 public bool IsRaycastHit(out CursorType cursorType, out RaycastableType raycastableType)
 {
     cursorType      = CursorType.Dialogue;
     raycastableType = RaycastableType.Dialogue;
     return(enabled);
 }
예제 #4
0
 public bool IsRaycastHit(out CursorType cursorType, out RaycastableType raycastableType)
 {
     cursorType      = CursorType.Combat;
     raycastableType = RaycastableType.Enemy;
     return(enabled);
 }