Skip to content

Commit 6dcabc2

Browse files
authored
Merge pull request #339 from Maaack/fix-tutorial-read-state-not-saving
Fix cases of tutorial read state not saving
2 parents 861feed + d295db1 commit 6dcabc2

File tree

2 files changed

+2
-0
lines changed
  • addons/maaacks_game_template/examples/scenes/game_scene/levels
  • scenes/game_scene/levels

2 files changed

+2
-0
lines changed

addons/maaacks_game_template/examples/scenes/game_scene/levels/level.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func _on_win_button_pressed() -> void:
2020
func open_tutorials() -> void:
2121
%TutorialManager.open_tutorials()
2222
level_state.tutorial_read = true
23+
GlobalState.save()
2324

2425
func _ready() -> void:
2526
level_state = GameStateExample.get_level_state(scene_file_path)

scenes/game_scene/levels/level.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func _on_win_button_pressed() -> void:
2020
func open_tutorials() -> void:
2121
%TutorialManager.open_tutorials()
2222
level_state.tutorial_read = true
23+
GlobalState.save()
2324

2425
func _ready() -> void:
2526
level_state = GameState.get_level_state(scene_file_path)

0 commit comments

Comments
 (0)