From 8c8ad0d4517d665e0a75765b169f219fdec58112 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 7 Apr 2021 21:07:47 +0200 Subject: [PATCH] adding end --- scripts/PortailDeFin.gd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/PortailDeFin.gd diff --git a/scripts/PortailDeFin.gd b/scripts/PortailDeFin.gd new file mode 100644 index 0000000..8d26856 --- /dev/null +++ b/scripts/PortailDeFin.gd @@ -0,0 +1,8 @@ +extends Area2D + +func _ready(): + pass + +func _on_Portail_de_fin_body_entered(body): + if "Joueur" in body.name: + get_tree().quit()