Godot 4.5.1

This commit is contained in:
2025-12-14 22:43:11 +10:00
parent 5805ac2260
commit 4dd1ce64f5
433 changed files with 2922 additions and 585 deletions

View File

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