add props
This commit is contained in:
19
scripts/singletons/Overworld.gd
Normal file
19
scripts/singletons/Overworld.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
class_name OverworldSingleton extends Node
|
||||
|
||||
signal mapChanged
|
||||
|
||||
func _init() -> void:
|
||||
pass
|
||||
|
||||
func _exit_tree() -> void:
|
||||
TRANSITION.fadeOutEnd.disconnect(onFadeOutEnd)
|
||||
|
||||
func mapChange(map:Map.MapKey) -> void:
|
||||
TRANSITION.fade(TransitionSingleton.FadeType.FADE_OUT)
|
||||
TRANSITION.fadeOutEnd.connect(onFadeOutEnd)
|
||||
print("OverworldSingleton: mapChange called with map:", map)
|
||||
|
||||
func onFadeOutEnd() -> void:
|
||||
TRANSITION.fadtOutEnd.disconnect(onFadeOutEnd)
|
||||
TRANSITION.fade(TransitionSingleton.FadeType.FADE_IN)
|
||||
mapChanged.emit()
|
1
scripts/singletons/Overworld.gd.uid
Normal file
1
scripts/singletons/Overworld.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dqtt405nifbhq
|
@@ -23,4 +23,7 @@ func isMovementPaused() -> bool:
|
||||
|
||||
|
||||
func menuPause() -> void:
|
||||
UI.PAUSE.open()
|
||||
if UI.PAUSE.isOpen():
|
||||
UI.PAUSE.close()
|
||||
else:
|
||||
UI.PAUSE.open()
|
1
scripts/singletons/Quest.gd
Normal file
1
scripts/singletons/Quest.gd
Normal file
@@ -0,0 +1 @@
|
||||
class_name QuestSingleton extends Node
|
1
scripts/singletons/Quest.gd.uid
Normal file
1
scripts/singletons/Quest.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cd4lf5sm2aquv
|
Reference in New Issue
Block a user