Added trading system and cargo saving
This commit is contained in:
parent
50be4a0bb2
commit
30e53f858f
19 changed files with 301 additions and 12 deletions
|
|
@ -13,11 +13,13 @@ func _on_body_entered(body):
|
|||
if body is MainShip:
|
||||
body.allow_shooting = false
|
||||
menu_inst = menu.instantiate()
|
||||
body.find_child("GUI").add_child(menu_inst)
|
||||
menu_inst.modulate = get_parent().modulate
|
||||
menu_inst.base = get_parent()
|
||||
body.find_child("GUI").add_child(menu_inst)
|
||||
body.minimap.visible = false
|
||||
|
||||
func _on_body_exited(body):
|
||||
if body is MainShip:
|
||||
body.allow_shooting = true
|
||||
body.minimap.visible = true
|
||||
menu_inst.queue_free()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue