Fixed shield loading
This commit is contained in:
parent
ea4cc9ada1
commit
2c2c7fa0b3
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ func change_engine(new):
|
|||
func change_shield(new):
|
||||
var new_shield = Game.get_module(new, 'shield').instantiate()
|
||||
var old_shield = shield
|
||||
add_child(shield)
|
||||
add_child(new_shield)
|
||||
shield = new_shield
|
||||
get_tree().create_timer(0.05).timeout.connect(old_shield.queue_free)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue