Fixed shield crash and material coloring
This commit is contained in:
parent
793938857e
commit
255a47f6da
7 changed files with 10 additions and 12 deletions
|
|
@ -45,5 +45,5 @@ func shoot():
|
|||
proj_inst.global_position = spawner.global_position
|
||||
proj_inst.global_rotation = spawner.global_rotation + randf_range(-deviation/2, deviation/2)
|
||||
proj_inst.faction = ship.faction
|
||||
proj_inst.modulate = ship.modulate
|
||||
proj_inst.modulate = ship.material.get_shader_parameter('color')
|
||||
weapon_shooted.emit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue