17 lines
356 B
GDScript
17 lines
356 B
GDScript
extends Interaction
|
|
|
|
@onready var deliveryInterface:Window = $DeliveryInteface
|
|
|
|
var shopInventory = []
|
|
|
|
func _ready():
|
|
add_action("Deliver", open_delivery)
|
|
#instantiate_shop_inventory()
|
|
|
|
func open_delivery():
|
|
deliveryInterface.popup_centered()
|
|
deliveryInterface.opened()
|
|
|
|
func instantiate_shop_inventory():
|
|
$DeliveryInteface.shopItems = shopInventory
|