private static void faqUpdateFinished() { help = helpUpdate; initializeFoldouts(); Instance.Repaint(); File.WriteAllText(Application.dataPath + EDITORFOLDER + "help.json", JsonUtility.ToJson(help)); Debug.Log("Update finished"); }
private static void loadDataFromJson() { if (File.Exists(Application.dataPath + EDITORFOLDER + "help.json")) { string helpJson = File.ReadAllText(Application.dataPath + EDITORFOLDER + "help.json"); help = JsonUtility.FromJson <HUDShader2HelpCollection> (helpJson); initializeFoldouts(); } }
private static void checkFaqUpdate(string content) { helpUpdate = JsonUtility.FromJson <HUDShader2HelpCollection> (content); if (helpUpdate.revision > help.revision) { proccessUpdate(); } else { Debug.Log("No Update available."); } }