1234567891011121314151617181920 |
- @tool
- extends TextureButton
- @export var level : String :
- get:
- return get_level()
- set(value):
- set_level(value)
-
- func get_level():
- return $Label.text
- func set_level(value):
- $Label.text = value
- func _on_pressed():
- SceneManager.change_to_scene(SceneManager.get_level($Label.text))
|