void Start()
{
assetManager = GameObject.Find ("AssetManager").GetComponent ("AssetManager") as AssetManager;
objectList = GameObject.Find ("ObjectList").GetComponent ("ObjectList") as ObjectList;
//listItems = objects.ToArray ();
bgRect = new Rect (19 * bgLeft, bgTop, bgWidth, bgHeight);
//export button
exportRect = new Rect (bgLeft, bgTop + bgHeight + (Screen.height / 48) + 30, bgWidth, 25);
TextAsset verbList = Resources.Load ("collocations") as TextAsset;
string[] fLines = System.Text.RegularExpressions.Regex.Split (verbList.text, "\n|\r|\r\n");
for (int i = 0; i < fLines.Length; i++) {
if (fLines[i].Length > 0) {
string objName = fLines[i].Split(new char[]{'{'})[0].Trim();
if (assetManager.prefabs.ContainsKey(objName)) {
List<string> toAdd = new List<string>();
string[] verbs = fLines[i].Split(new char[]{'{'})[1].Split(new char[]{'}'})[0].Split (new char[]{','});
foreach (string verb in verbs) {
string token = verb.Split (new char[]{':'})[0];
if (token.Contains("\"")) {
token = token.Replace("\"","");
}
else {
token = token.Replace("\'","");
}
toAdd.Add (token);
}
availableParams.Add (objName,toAdd);
}
}
}
}