multiple scenes
This commit is contained in:
parent
e90a7114c6
commit
c05f2c703b
32 changed files with 374 additions and 25 deletions
|
|
@ -33,3 +33,7 @@ func _on_loot_button_pressed() -> void:
|
|||
func pick_random_item() -> ItemData:
|
||||
var icount = loot_pool.size()
|
||||
return loot_pool[randi() % icount]
|
||||
|
||||
|
||||
func _on_return_button_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://scenes/workshop.tscn")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue