Beispiel #1
0
    public void HeroInfoLoad()//히어로 정보 불러오기
    {
        if (!File.Exists(heroSavePath))
        {
            HeroInfoSave(); return;
        }
        string code = File.ReadAllText(heroSavePath);//복호화 해서 불러와줍니다.

        byte[] bytes = System.Convert.FromBase64String(code);
        string jdata = System.Text.Encoding.UTF8.GetString(bytes);
        SavebleList <HeroInfo> loadedHeroInfo = JsonUtility.FromJson <SavebleList <HeroInfo> >(jdata);

        heroList = loadedHeroInfo.save;
    }
Beispiel #2
0
    public void AchievementInfoLoad()//유저 정보 불러오기
    {
        if (!File.Exists(achievementSavePath))
        {
            AchievementInfoSave(); return;
        }
        string code = File.ReadAllText(achievementSavePath);//복호화 해서 불러와줍니다.

        byte[] bytes = System.Convert.FromBase64String(code);
        string jdata = System.Text.Encoding.UTF8.GetString(bytes);
        SavebleList <string> loadedAchievement = JsonUtility.FromJson <SavebleList <string> >(jdata);

        achievement = loadedAchievement.save;
    }