Beispiel #1
0
 private void HandleCheckForInteract()
 {
     if (Controller.Interact == true && _selectedInteractable != null)
     {
         _selectedInteractable.OnStopInteract += OnInteractableStopInteraction;
         _interactionState = TInteractionState.Interacting;
         _selectedInteractable.StartInteract();
         OnStartInteract.Invoke(Master, _selectedInteractable);
     }
 }
Beispiel #2
0
 private void OnInteractableStopInteraction(ITInteractable interactable)
 {
     _interactionState            = TInteractionState.None;
     interactable.OnStopInteract -= OnInteractableStopInteraction;
     OnStopInteract?.Invoke(Master, interactable);
 }