first commit
This commit is contained in:
12
fiona_heart.gd
Normal file
12
fiona_heart.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends Area3D
|
||||
|
||||
|
||||
func _on_body_entered(body):
|
||||
if Globals.task == 2 && body.is_in_group("player"):
|
||||
Globals.gameOver(false)
|
||||
|
||||
var sound_played = false
|
||||
func _process(_delta):
|
||||
if !sound_played && Globals.task == 2:
|
||||
sound_played = true
|
||||
$heart.play()
|
||||
Reference in New Issue
Block a user