Ejemplo n.º 1
0
    IEnumerator StartGetNetTable()
    {
        string url = @"http://ooform.ooroom.com/NetItem.txt";

        Debug.Log(url);
        WWW www = new WWW(url);

        yield return(www);

        System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding();
        mFormArray = OOFormArray.GetForm(converter.GetString(www.bytes));
    }
Ejemplo n.º 2
0
 void SetAsset(TextAsset textAsset)
 {
     mSelectionAsset = textAsset;
     if (textAsset == null)
     {
         mSelectionTable     = null;
         mSelectionAssetPath = "";
     }
     else
     {
         mSelectionTable     = OOFormArray.GetForm(textAsset.text);
         mSelectionAssetPath = AssetDatabase.GetAssetPath(textAsset.GetInstanceID());
     }
 }