Skip to content

Commit

Permalink
Fix verbs in mapping state (#30631) (DeltaV-Station#1895)
Browse files Browse the repository at this point in the history
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
  • Loading branch information
deltanedas and metalgearsloth authored Sep 22, 2024
1 parent fe93e6b commit 00e2b54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Content.Client/Verbs/UI/VerbMenuUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@ public void OnStateExited(GameplayState state)

public void OnStateEntered(MappingState state)
{
_context.OnContextKeyEvent += OnKeyBindDown;
_context.OnContextClosed += Close;
_verbSystem.OnVerbsResponse += HandleVerbsResponse;
}

public void OnStateExited(MappingState state)
{
_context.OnContextKeyEvent -= OnKeyBindDown;
_context.OnContextClosed -= Close;
if (_verbSystem != null)
_verbSystem.OnVerbsResponse -= HandleVerbsResponse;
Close();
}

/// <summary>
Expand Down

0 comments on commit 00e2b54

Please sign in to comment.