Add inventory system #1
@@ -75,10 +75,10 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||||||
$SceneViewport.push_input(event)
|
$SceneViewport.push_input(event)
|
||||||
|
|
||||||
func _on_backpack_show_overlay() -> void:
|
func _on_backpack_show_overlay() -> void:
|
||||||
$HUD/InventoryOverlay.show_overlay()
|
$InventoryOverlayLayer/InventoryOverlay.show_overlay()
|
||||||
|
|
||||||
func _on_backpack_hide_overlay() -> void:
|
func _on_backpack_hide_overlay() -> void:
|
||||||
$HUD/InventoryOverlay.hide_overlay()
|
$InventoryOverlayLayer/InventoryOverlay.hide_overlay()
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
if event.is_action_released("quit"):
|
if event.is_action_released("quit"):
|
||||||
|
|||||||
Reference in New Issue
Block a user