Exemple #1
0
        public TrainerManager(ViewModel i_playerModel, TrainerSaveData i_trainerData, Dictionary <string, UnitProgress> i_unitProgress)
        {
            mTrainers    = i_trainerData.TrainerCounts;
            mPlayerModel = i_playerModel;

            RefreshTrainerUI(i_unitProgress);

            SubscribeToMessages();
        }
Exemple #2
0
 private void DownloadTrainerData()
 {
     mBackend.GetPlayerData(TRAINER_SAVE_DATA, (jsonData) => {
         mTrainerSaveData = JsonConvert.DeserializeObject <TrainerSaveData>(jsonData);
     });
 }