Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
parent
fe93e6b9c1
commit
00e2b5468d
|
|
@ -60,13 +60,18 @@ namespace Content.Client.Verbs.UI
|
||||||
|
|
||||||
public void OnStateEntered(MappingState state)
|
public void OnStateEntered(MappingState state)
|
||||||
{
|
{
|
||||||
|
_context.OnContextKeyEvent += OnKeyBindDown;
|
||||||
|
_context.OnContextClosed += Close;
|
||||||
_verbSystem.OnVerbsResponse += HandleVerbsResponse;
|
_verbSystem.OnVerbsResponse += HandleVerbsResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnStateExited(MappingState state)
|
public void OnStateExited(MappingState state)
|
||||||
{
|
{
|
||||||
|
_context.OnContextKeyEvent -= OnKeyBindDown;
|
||||||
|
_context.OnContextClosed -= Close;
|
||||||
if (_verbSystem != null)
|
if (_verbSystem != null)
|
||||||
_verbSystem.OnVerbsResponse -= HandleVerbsResponse;
|
_verbSystem.OnVerbsResponse -= HandleVerbsResponse;
|
||||||
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue