Fixed shield crash and material coloring
This commit is contained in:
parent
793938857e
commit
255a47f6da
7 changed files with 10 additions and 12 deletions
|
|
@ -19,7 +19,7 @@ func _on_body_entered(body):
|
|||
ship_in_menu = true
|
||||
body.allow_shooting = false
|
||||
menu_inst = menu.instantiate()
|
||||
menu_inst.modulate = get_parent().modulate
|
||||
menu_inst.modulate = get_parent().material.get_shader_parameter('color')
|
||||
menu_inst.base = get_parent()
|
||||
body.find_child("GUI").add_child(menu_inst)
|
||||
body.minimap.visible = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue