Fix bug on unlock next stage
This commit is contained in:
parent
5bc8989892
commit
7cd0c2ced2
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ func set_next_stage(value: int):
|
||||||
|
|
||||||
func unlock_next_stage():
|
func unlock_next_stage():
|
||||||
if next_stage != 0:
|
if next_stage != 0:
|
||||||
data['unlocked_stage'] = next_stage
|
if data['unlocked_stage'] < next_stage:
|
||||||
game_data.save_data(data)
|
data['unlocked_stage'] = next_stage
|
||||||
|
game_data.save_data(data)
|
||||||
|
|
||||||
func _on_next_stage_pressed():
|
func _on_next_stage_pressed():
|
||||||
get_tree().paused = false
|
get_tree().paused = false
|
||||||
|
|
Loading…
Reference in a new issue