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