File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Assets/Scripts/Interaction System Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void Update()
61
61
62
62
interactable = selectionTransform . GetComponent < InteractableObject > ( ) ;
63
63
64
- if ( interactable != null && ( interactable . playerInRange || oneTimeInteraction ) && ! isInteracting )
64
+ if ( interactable != null && ( interactable . playerInRange || oneTimeInteraction ) )
65
65
{
66
66
if ( interactable != lastInteractable )
67
67
{
@@ -72,7 +72,7 @@ void Update()
72
72
interactable . GetComponent < Outline > ( ) . enabled = canHighlight ;
73
73
SetText ( interactable . GetSelectionPrompt ( ) ) ;
74
74
75
- if ( Input . GetKeyDown ( KeyCode . E ) )
75
+ if ( Input . GetKeyDown ( KeyCode . E ) && ! isInteracting )
76
76
{
77
77
Debug . Log ( "Interacting with " + interactable . name ) ;
78
78
interactable . Interact ( ) ;
You can’t perform that action at this time.
0 commit comments