22 lines
560 B
GDScript
22 lines
560 B
GDScript
extends Level
|
|
|
|
|
|
func _ready() -> void:
|
|
print("TMP ready")
|
|
|
|
|
|
func _on_ExitLevelArea_body_entered(body: Node) -> void:
|
|
if body == _player and is_active_level:
|
|
print("_on_ExitLevelArea_body_entered")
|
|
self.is_active_level = false;
|
|
emit_signal("level_exited", false)
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_ExitLevelAreaNext_body_entered(body: Node) -> void:
|
|
if body == _player and is_active_level:
|
|
print("_on_ExitLevelAreaNext_body_entered")
|
|
self.is_active_level = false;
|
|
emit_signal("level_exited", true)
|
|
pass # Replace with function body.
|