14 lines
254 B
GDScript3
14 lines
254 B
GDScript3
|
extends Area2D
|
||
|
|
||
|
export(Resource) var connection = null
|
||
|
export(String, FILE, "*.tscn") var new_level_path = ""
|
||
|
|
||
|
var active = true
|
||
|
|
||
|
|
||
|
func _on_Door_body_entered(player):
|
||
|
print("hit door")
|
||
|
if active:
|
||
|
player.emit_signal("his_door", self)
|
||
|
active = false
|