public static void LoadGame(int slotNumber) { string jsonData = PlayerPrefs.GetString("SaveData"+slotNumber); if (string.IsNullOrEmpty(jsonData)) return; _gameData = JsonMapper.ToObject<GameData>(jsonData); LoadChapter(); }
public static void NewGame(int slotNumber) { _gameData = new GameData(1); SaveGame(slotNumber); LoadChapter(); }