Shop confines improrperly
This commit is contained in:
parent
5df5633c27
commit
faa7745257
2 changed files with 15 additions and 4 deletions
|
|
@ -12,7 +12,10 @@ func _input(event: InputEvent) -> void:
|
|||
if event.is_action_pressed("plr_buy"):
|
||||
if Session.round_state == Session.ROUND_STATES.BUY:
|
||||
visible = not visible
|
||||
MouseConfiner.borrow()
|
||||
if visible:
|
||||
MouseConfiner.borrow()
|
||||
else:
|
||||
MouseConfiner.stop_borrow()
|
||||
elif visible:
|
||||
visible = false
|
||||
MouseConfiner.stop_borrow()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue