No pop sound on hidden blob

This commit is contained in:
bleeptrack 2020-10-27 11:38:04 +01:00
parent 448ed89ead
commit 39de925a66

View file

@ -18,8 +18,9 @@ var arrow = preload("res://scenes/arrow.tscn")
func _ready(): func _ready():
content_set(content) content_set(content)
type_set(type) type_set(type)
$Pop.pitch_scale = rand_range(0.8, 1.2) if not repository.simplified_view:
$Pop.play() $Pop.pitch_scale = rand_range(0.8, 1.2)
$Pop.play()
func _process(_delta): func _process(_delta):
if held: if held: