// Use this for initialization void Start() { jsonFile = Resources.Load <TextAsset>("Localization/" + LanguageSelector.instance.GetCurrentLanguage() + "/" + fileName); if (jsonFile != null) { string fileContents = jsonFile.text; jsonObj = JSONObject.Create(fileContents); try { Sequence seq = SequenceGenerator.createSimplyDialog("default", jsonObj); computer.AddDefaultPublicationCommentSequence(seq); } catch (Exception e) { Debug.LogError("Error in " + jsonFile.name + " file. The error is: " + e.Message); } } }