rename consistency

This commit is contained in:
2025-08-19 19:57:24 -05:00
parent e74896527b
commit 379c7007aa
56 changed files with 43 additions and 36 deletions

19
singleton/Scene.gd Normal file
View File

@@ -0,0 +1,19 @@
class_name SceneSingleton extends Node
enum SceneType {
UNSET,
INITIAL,
OVERWORLD
}
var currentScene:SceneType = SceneType.UNSET
signal sceneChanged(newScene:SceneType)
func _enter_tree() -> void:
currentScene = SceneType.UNSET
func setScene(newScene:SceneType) -> void:
if currentScene == newScene:
return
currentScene = newScene
sceneChanged.emit(currentScene)