Update cursor handling and reset functionality, improve UI elements. Reset game state cursor when needed.

This commit is contained in:
Dan 2024-05-12 09:39:02 +01:00
parent 6e6a231300
commit 4b5ac48e10
6 changed files with 33 additions and 4 deletions

View file

@ -28,6 +28,7 @@ func _ready():
func _on_change_scene(scene_name):
Log.pr("Going to load a scene.", scene_name)
if SCENES.has(scene_name):
GameState.reset()
loading_scene_res = load(SCENES[scene_name])
Log.pr("Loading scene: ", loading_scene_res)
$TransitionScene.transition()