コード例 #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();
        }
コード例 #2
0
 private void DownloadTrainerData()
 {
     mBackend.GetPlayerData(TRAINER_SAVE_DATA, (jsonData) => {
         mTrainerSaveData = JsonConvert.DeserializeObject <TrainerSaveData>(jsonData);
     });
 }