public string SaveClass() { ClassSaveHelper helper = new ClassSaveHelper(); helper.SaveValue(nameof(hp), hp); return(helper.GetJsonString()); }
public string SaveClass() { SaveReciteTimeAndClearArray(); RecordPassSceneTime(); ClassSaveHelper helper = new ClassSaveHelper(); helper.SaveValue(nameof(deathNumberInScenes), deathNumberInScenes); helper.SaveValue(nameof(deadBySlimer), deadBySlimer); helper.SaveValue(nameof(deadByMinotaur), deadByMinotaur); helper.SaveValue(nameof(deadByWitch), deadByWitch); helper.SaveValue(nameof(deadByFalling), deadByFalling); helper.SaveValue(nameof(deadByYourself), deadByYourself); helper.SaveValue(nameof(hitBySlimer), hitBySlimer); helper.SaveValue(nameof(hitByMinotaur), hitByMinotaur); helper.SaveValue(nameof(hitByWitch), hitByWitch); helper.SaveValue(nameof(fireElementConsumption), fireElementConsumption); helper.SaveValue(nameof(thunderElementConsumption), thunderElementConsumption); helper.SaveValue(nameof(iceElementConsumption), iceElementConsumption); helper.SaveValue(nameof(windElementConsumption), windElementConsumption); helper.SaveValue(nameof(passSceneTimes), passSceneTimes); helper.SaveValue(nameof(MSpellTime), MSpellTime); helper.SaveValue(nameof(MASpellTime), MASpellTime); helper.SaveValue(nameof(MBSpellTime), MBSpellTime); helper.SaveValue(nameof(ASpellTime), ASpellTime); helper.SaveValue(nameof(BSpellTime), BSpellTime); helper.SaveValue(nameof(MABSpellTime), MABSpellTime); helper.SaveValue(nameof(jumpNumber), jumpNumber); helper.SaveValue(nameof(shortSpellTime), shortSpellTime); helper.SaveValue(nameof(fullySpellTime), fullySpellTime); helper.SaveValue(nameof(wantFullyButFailedTimeForShortPressedTime), wantFullyButFailedTimeForShortPressedTime); helper.SaveValue(nameof(wantFullyButFailedTimeForElementNotEnough), wantFullyButFailedTimeForElementNotEnough); helper.SaveValue(nameof(wantFullyButFailedTimeForBeInterrupted), wantFullyButFailedTimeForBeInterrupted); return(helper.GetJsonString()); }
public string SaveClass() { ClassSaveHelper helper = new ClassSaveHelper(); helper.SaveValue(nameof(transform.position), SerializableConvert.GetSerializableVector3(transform.position)); return(helper.GetJsonString()); //Dictionary<string, string> content = new Dictionary<string, string>(); //content.Add(nameof(transform.position), JsonConvert.SerializeObject(SerializableConvert.GetSerializableVector3(transform.position))); //return JsonConvert.SerializeObject(content); }