Flopsy/scenes/levels/interlude.gd

13 lines
374 B
GDScript3
Raw Normal View History

2022-07-17 17:08:39 +02:00
extends "res://scenes/levels/level.gd"
export(String, FILE, "*.tscn") var next_level
func _process(delta):
if Input.is_action_just_pressed("ui_cancel"):
_disable_signals()
main.load_level(next_level, true)
func _disable_signals():
for sig in get_signal_list():
for con in get_signal_connection_list(sig.name):
disconnect(con.signal_name, self, con.method_name)