コード例 #1
0
        public void RegistertheInteractableObject(InteractableObjectFBBIK interactableObject)
        {
            m_interactableObjectsDict.Add(interactableObject, interactableObject);
            interactableObject.OnInteractableObjectInRangeEvent  += OnInteractableObjectInRangeEventCallback;
            interactableObject.OnInteractableObjectOutRangeEvent += OnInteractableObjectOutRangeEventCallback;

            interactableObject.OnInteractionIndicatorShowEvent += OnInteractionIndicatorShowEventEventCallback;
            interactableObject.OnInteractionIdicatorHideEvent  += OnInteractionIdicatorHideEventCallback;
        }
コード例 #2
0
 private void OnInteractableObjectOutRangeEventCallback(InteractableObjectFBBIK interactableObject)
 {
     // m_interactionIndicator.ShowInteractionIcon(false, null);
     m_currentInteractableObject = null;
     if (OnInteractableObjectOutRangeEvent != null)
     {
         OnInteractableObjectOutRangeEvent(interactableObject);
     }
 }
コード例 #3
0
 private void OnInteractableObjectInRangeEventCallback(InteractableObjectFBBIK interactableObject)
 {
     //m_interactionIndicator.ShowInteractionIcon(false, interactableObject.m_interactionIndicatorPosition.position);
     m_currentInteractableObject = interactableObject;
     if (OnInteractableObjectInRangeEvent != null)
     {
         OnInteractableObjectInRangeEvent(interactableObject);
     }
 }
コード例 #4
0
 private void OnShowPictureFrameEndEvent(InteractableObjectFBBIK obj)
 {
     if (m_checkForInteractionEvents)
     {
         if (m_InteractionEventType == InteractionEventType.End)
         {
             m_status = true;
             m_dicisionConditionSatisfied = true;
         }
     }
 }
コード例 #5
0
ファイル: Mother.cs プロジェクト: SabinMG/MasterThesis-Unity
        private void OnInteractionStopEventCallback(InteractableObjectFBBIK interactableObject)
        {
            switch (interactableObject.InteractionType)
            {
            case InteractionTypes.DraggableBox:
                m_CurrentDraggableBox = null;
                break;

            default:
                break;
            }
        }
コード例 #6
0
 public virtual void OnInteractionStopEventCallback(InteractableObjectFBBIK interactableObject)
 {
 }
コード例 #7
0
 private void OnInteractionIdicatorHideEventCallback(InteractableObjectFBBIK interactableObject, Vector3 pos)
 {
     m_interactionIndicator.ShowInteractionIndicator(false);
 }
コード例 #8
0
 private void OnInteractionIndicatorShowEventEventCallback(InteractableObjectFBBIK interactableObject, Vector3 pos)
 {
     m_interactionIndicator.ShowInteractionIndicator(true, pos);
 }
コード例 #9
0
ファイル: Player.cs プロジェクト: SabinMG/MasterThesis-Unity
 private void OnInteractableObjectOutRangeEventCallback(InteractableObjectFBBIK interactableObject)
 {
     m_thirdPersonController.OnInteractableObjectOutRangeEvent(interactableObject);
 }