public TrainerManager(ViewModel i_playerModel, TrainerSaveData i_trainerData, Dictionary <string, UnitProgress> i_unitProgress) { mTrainers = i_trainerData.TrainerCounts; mPlayerModel = i_playerModel; RefreshTrainerUI(i_unitProgress); SubscribeToMessages(); }
private void DownloadTrainerData() { mBackend.GetPlayerData(TRAINER_SAVE_DATA, (jsonData) => { mTrainerSaveData = JsonConvert.DeserializeObject <TrainerSaveData>(jsonData); }); }