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; } } }
private void OnInteractionStopEventCallback(InteractableObjectFBBIK interactableObject) { switch (interactableObject.InteractionType) { case InteractionTypes.DraggableBox: m_CurrentDraggableBox = null; break; default: break; } }
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); }
private void OnInteractableObjectOutRangeEventCallback(InteractableObjectFBBIK interactableObject) { m_thirdPersonController.OnInteractableObjectOutRangeEvent(interactableObject); }