Exemple #1
0
    IEnumerator getSkins()
    {
        // addLoadInfo("Getting Skins");
        var form = new WWWForm();

        form.AddField("activity", "getSkins");
        form.AddField("linkcode", linkCode);
        // Start a download of the given URL
        WWW www = new WWW(url, form);

        // Wait for download to complete
        yield return(www);

        if (www.error == null)
        {
            if (skinsLoaded != null)
            {
                skinsLoaded.value = true;
            }
            XmlSerializer Xml_Serializer = new XmlSerializer(typeof(SkinElements));
            using (StringReader reader = new StringReader(www.text))
            {
                skinElements     = (SkinElements)Xml_Serializer.Deserialize(reader);
                manualUpdateSkin = true;
            }
        }
        else
        {
            hasErrors = true;
            addLoadInfo(www.error);
        }
    }
Exemple #2
0
 public Rectangle this[SkinElements index] { get { return _sources[index]; } }