Ejemplo n.º 1
0
 public void GetDataFromWWW(WWWQuery.WWWResult result, WWW www)
 {
     if (result == WWWQuery.WWWResult.Success)
     {
         texture = www.texture;
     }
     else
     {
         texture = null;
     }
 }
Ejemplo n.º 2
0
 public void GetDataFromWWW(WWWQuery.WWWResult result, WWW www)
 {
     if (result == WWWQuery.WWWResult.Success)
     {
         using (System.IO.StreamReader sw = new System.IO.StreamReader(new System.IO.MemoryStream(www.bytes)))
         {
             text = sw.ReadToEnd();
         }
     }
     else if (result == WWWQuery.WWWResult.Failed)
     {
         text = www.error;
     }
     else // WWWQuery.WWWResult.Timeout
     {
         text = string.Empty;
     }
 }