public static GKGConfigContainer Load() { TextAsset _xml = Resources.Load <TextAsset>("GKGConfig/GKGConfig"); XmlSerializer serializer = new XmlSerializer(typeof(GKGConfigContainer)); StringReader reader = new StringReader(_xml.text); GKGConfigContainer items = serializer.Deserialize(reader) as GKGConfigContainer; reader.Close(); return(items); }
public IEnumerator uploadFile(string loginURL, WWWForm formData, UIManager uiManager) { uiManager.www = new WWW(loginURL, formData); uiManager.showMsg.GetComponent <Text>().text = translate.getLocalizedValue("txtSendingPlayData").Replace("\\n", "\n"); yield return(uiManager.www); uiManager.sentFile = true; // DEBUG: test for connection via GET GKGConfigContainer gkgConfig = GKGConfigContainer.Load(); yield return(new WWW(gkgConfig.configItems[0].URL + "/get_sent.html")); }