void Start() { string[] lines = new string[0]; lines = File.ToString().Split('\n'); Debug.Log("There are " + lines.Length + " words to be added"); if (lines.Length > 500) { throw new System.Exception("Theres waaay to many ostriches. More then 500 items."); } for (int i = 1; i < lines.Length; i++) { string[] parts = lines[i].Split(','); Word word = new Word(parts); switch (parts[1]) { case "Verb": Verb.Add(word); word.WordClass = WordClass.Verb; break; case "Adjective": Adjective.Add(word); word.WordClass = WordClass.Adjective; break; case "Noun": Noun.Add(word); word.WordClass = WordClass.Noun; break; } } set = true; }