mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Weapon equip fix
This commit is contained in:
parent
6d7282f5cb
commit
27fb8fb4bd
5 changed files with 14 additions and 6 deletions
|
|
@ -25,11 +25,12 @@ public partial class InventoryMenu : TabContainer
|
|||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (Input.IsActionJustPressed(InventoryActionName) || Input.IsActionJustPressed(PauseActionName))
|
||||
if (Input.IsActionJustPressed(InventoryActionName) || Input.IsActionJustPressed(PauseActionName) || Input.IsActionJustPressed(CancelActionName))
|
||||
{
|
||||
if (Visible)
|
||||
{
|
||||
CallDeferred(MethodName.HideInventory);
|
||||
GameManager.Instance.ChangeState(GameState.Playing);
|
||||
//CallDeferred(MethodName.HideInventory);
|
||||
}
|
||||
// else
|
||||
// {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue