9 lines
213 B
GDScript
9 lines
213 B
GDScript
extends Area2D
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _on_Portail_de_fin_body_entered(body):
|
|
if "Joueur" in body.name:
|
|
if get_tree().change_scene("res://scenes/Menu.tscn") != OK:
|
|
print("Impossible de charger le jeu.")
|