trash slot blocks travel
This commit is contained in:
parent
866d869756
commit
217efd9f9f
4 changed files with 20 additions and 17 deletions
|
|
@ -3,6 +3,7 @@ extends Control
|
|||
@export var ewaste_button : Button
|
||||
@export var computer_button : Button
|
||||
@export var crafting_inv : Inventory
|
||||
@export var trash_inv : Inventory
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
|
@ -12,6 +13,7 @@ func _ready() -> void:
|
|||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
Locations.block_moving = crafting_inv.filled_slots() > 0
|
||||
Locations.block_moving = trash_inv.filled_slots() > 0
|
||||
#if crafting_inv.filled_slots() > 0:
|
||||
#ewaste_button.disabled = true
|
||||
#computer_button.disabled = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue