protected override IEnumerator LoadLocalizationItems() { var parseInterfaceTexts = new AsyncXmlParser <List <LocalizationItem> >(Path.Combine(Application.streamingAssetsPath, RelativeInterfaceTextsPath)); yield return(parseInterfaceTexts); LanguageController.InterfaceTexts = parseInterfaceTexts.Result; }
protected override IEnumerator LoadLanguages() { var parseLanguages = new AsyncXmlParser <List <Language> >(Path.Combine(Application.streamingAssetsPath, RelativeLanguagesPath)); yield return(parseLanguages); LanguageController.Languages = parseLanguages.Result; }
private void BeginStream() { OnConnected(); parser = new AsyncXmlParser(); parser.Origin = fConnection; fState = XMPP.State.Connected; fServerRoot = null; parser.ReadXmlElementAsync(new Action <XmlParserResult>(GotData), false); fRootElement = new ClientStream(); fRootElement.To = new JID(Domain); BeginSend(fRootElement, WriteMode.Open, null); BeginTimeout(); }