/
mrFeld
/
Platformer
Обзор
Документация
Войти
/
mrFeld
/
Platformer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
inventory
Script/UI/user_interface.gd
13 строк
364 B
Neterov Vladimir
Inventory v0.2
23 сен 2025, 12:17
23 сен 2025, 12:17
d4cf390
Код
Авторство
О чём код?
extends CanvasLayer var holding_item = null func _input(event): if event.is_action_pressed("Inventory"): $Inventory.visible = !$Inventory.visible $Inventory.initialize_inventory() if event.is_action_pressed("scroll_up"): PlayerInventory.active_item_scroll_up() elif event.is_action_pressed("scroll_down"): PlayerInventory.active_item_scroll_down()