using System; using System.IO; using System.Net; using System.Linq; using UnityEngine; using System.Collections; using System.Collections.Generic; public class ruutudeloomine3 : MonoBehaviour { List ruudud=new List(); IEnumerator Start () { //Lugege uute ruutude koordinaadid sisse failist String url = "http://www.cs.tlu.ee/~jaagup/kool/java/kursused/" + "15/netraamistik/naited/vork/kohad.txt"; WWW www= new WWW (url); // Wait for download to complete yield return www; String[] read = www.text.Split ('\n'); GameObject ruut=(GameObject)GameObject.Find ("Ruut"); for(int i=0; i