Exemple #1
0
 private static void faqUpdateFinished()
 {
     help = helpUpdate;
     initializeFoldouts();
     Instance.Repaint();
     File.WriteAllText(Application.dataPath + EDITORFOLDER + "help.json", JsonUtility.ToJson(help));
     Debug.Log("Update finished");
 }
Exemple #2
0
 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();
     }
 }
Exemple #3
0
 private static void checkFaqUpdate(string content)
 {
     helpUpdate = JsonUtility.FromJson <HUDShader2HelpCollection> (content);
     if (helpUpdate.revision > help.revision)
     {
         proccessUpdate();
     }
     else
     {
         Debug.Log("No Update available.");
     }
 }