Correction de bug de Dialogic et réparation de la décontamination de la planète de l'écran titre
This commit is contained in:
@@ -3,8 +3,7 @@ extends Node
|
||||
const SAVE_GAME_LOCATION = "user://stw_playtest_2_save.tres"
|
||||
const SAVE_SETTINGS_LOCATION = "user://stw_settings.tres"
|
||||
|
||||
var game_loaded = false
|
||||
|
||||
signal game_loaded
|
||||
signal game_data_updated(g : GameData)
|
||||
|
||||
var game_data : GameData :
|
||||
@@ -20,6 +19,7 @@ func load_game_data() -> GameData:
|
||||
game_data = null
|
||||
if ResourceLoader.exists(SAVE_GAME_LOCATION) and ResourceLoader.load(SAVE_GAME_LOCATION):
|
||||
game_data = ResourceLoader.load(SAVE_GAME_LOCATION).duplicate_deep()
|
||||
game_loaded.emit()
|
||||
|
||||
return game_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user