Exemplo n.º 1
0
        public static void LoadFromJson()
        {
            string        obj  = File.ReadAllText(@"..\\..\\Shop\\Shop.json");
            TempShopValue temp = JsonConvert.DeserializeObject <TempShopValue>(obj);

            nh                 = NotifyHandler.InstanceCreation();
            nh.VBombCount      = temp.VBombCount;
            nh.Apokalypsecount = temp.Apokalypsecount;
            nh.GoldAmount      = temp.GoldAmount;
            nh.SupernovaCount  = temp.SupernovaCount;
            nh.HighestScore    = temp.HighestScore;
            _highscore         = temp.HighestScore;
            nh.WaveHighScore   = temp.WaveHighScore;
            _waveScore         = temp.WaveHighScore;
            nh.LivesExceed     = temp.Lives;
        }