xiandie/scene/main.gd

17 lines
327 B
GDScript3
Raw Normal View History

2024-12-23 01:29:31 +00:00
extends Node2D
2024-12-24 01:16:06 +00:00
@export var scene_config: SceneConfig:
set(val):
scene_config = val
_load_scene_config()
2024-12-23 01:29:31 +00:00
func _ready() -> void:
if GlobalConfig.DEBUG:
get_window().always_on_top = true
$UILayer.layer = GlobalConfig.CANVAS_LAYER_UI
2024-12-24 01:16:06 +00:00
_load_scene_config()
func _load_scene_config() -> void:
if !scene_config:
return