forked from team-sg/hero-mark-2
fix errorspew in level select
This commit is contained in:
parent
4c0513e84a
commit
5413d8aa5f
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ export var number = 0 #Used for saving which specific shards collected
|
|||
|
||||
func _ready():
|
||||
var hud = get_tree().get_nodes_in_group("hud").pop_back()
|
||||
connect("collected",hud,"shard_popup")
|
||||
if hud != null:
|
||||
connect("collected",hud,"shard_popup")
|
||||
$AnimationPlayer.play("glow")
|
||||
|
||||
func _on_Area2D_body_entered(body):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue