public void RegistertheInteractableObject(InteractableObjectFBBIK interactableObject)
        {
            m_interactableObjectsDict.Add(interactableObject, interactableObject);
            interactableObject.OnInteractableObjectInRangeEvent  += OnInteractableObjectInRangeEventCallback;
            interactableObject.OnInteractableObjectOutRangeEvent += OnInteractableObjectOutRangeEventCallback;

            interactableObject.OnInteractionIndicatorShowEvent += OnInteractionIndicatorShowEventEventCallback;
            interactableObject.OnInteractionIdicatorHideEvent  += OnInteractionIdicatorHideEventCallback;
        }
 private void OnInteractableObjectOutRangeEventCallback(InteractableObjectFBBIK interactableObject)
 {
     // m_interactionIndicator.ShowInteractionIcon(false, null);
     m_currentInteractableObject = null;
     if (OnInteractableObjectOutRangeEvent != null)
     {
         OnInteractableObjectOutRangeEvent(interactableObject);
     }
 }
 private void OnInteractableObjectInRangeEventCallback(InteractableObjectFBBIK interactableObject)
 {
     //m_interactionIndicator.ShowInteractionIcon(false, interactableObject.m_interactionIndicatorPosition.position);
     m_currentInteractableObject = interactableObject;
     if (OnInteractableObjectInRangeEvent != null)
     {
         OnInteractableObjectInRangeEvent(interactableObject);
     }
 }
 private void OnShowPictureFrameEndEvent(InteractableObjectFBBIK obj)
 {
     if (m_checkForInteractionEvents)
     {
         if (m_InteractionEventType == InteractionEventType.End)
         {
             m_status = true;
             m_dicisionConditionSatisfied = true;
         }
     }
 }
Exemplo n.º 5
0
        private void OnInteractionStopEventCallback(InteractableObjectFBBIK interactableObject)
        {
            switch (interactableObject.InteractionType)
            {
            case InteractionTypes.DraggableBox:
                m_CurrentDraggableBox = null;
                break;

            default:
                break;
            }
        }
Exemplo n.º 6
0
 public virtual void OnInteractionStopEventCallback(InteractableObjectFBBIK interactableObject)
 {
 }
 private void OnInteractionIdicatorHideEventCallback(InteractableObjectFBBIK interactableObject, Vector3 pos)
 {
     m_interactionIndicator.ShowInteractionIndicator(false);
 }
 private void OnInteractionIndicatorShowEventEventCallback(InteractableObjectFBBIK interactableObject, Vector3 pos)
 {
     m_interactionIndicator.ShowInteractionIndicator(true, pos);
 }
Exemplo n.º 9
0
 private void OnInteractableObjectOutRangeEventCallback(InteractableObjectFBBIK interactableObject)
 {
     m_thirdPersonController.OnInteractableObjectOutRangeEvent(interactableObject);
 }