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