/*private List<string> AllRoomList = new List<string> { * "MATH", "CHEM2", "MHMK", "TAB", "MATH 508/1", "MATH 508/2", "MATH 508/3", "MATH 509/1", "MATH 509/2", * "MATH 608/1", "MATH 608/2", "MATH 608/3", "MATH 608/4", "MATH 608/5", "MATH 608/6", "MATH 608/8", "MATH 608/9", * "MATH 708/1", "MATH 708/2", "MATH 708/3", "MATH 708/4", "MATH 708/5", "MATH 708/7", * "MATH 808", "MATH 809/2", "MATH 809/3", "MATH 809/4", "MATH 809/5", "MATH 809/6", "MATH 809/7", "MATH 809/9", * "MATH 909/1", "MATH 909/2", "MATH 909/3", "MATH 909/4", "MATH 909/5.1", "MATH 909/5.2", "MATH 909/6", "MATH 909/7", "MATH 909/8", "MATH 909/9", * "MATH 1008A", "MATH 1008B", "MATH 1008C", "MATH 1008D", "MATH 1008/2", "MATH 1008/3", "MATH 1008/4", "MATH 1008/5", "MATH 1008/6", "MATH 1008/8", "MATH 1008/9", "MATH 1008/10", "MATH 1008/12.1", "MATH 1008/12.2", "MATH 1008/13", "MATH 1008/14", "MATH 1008/16", "MATH 1008/19", * "MATH 1108A", "MATH 1108/2", "MATH 1108/3", "MATH 1108/4", "MATH 1108/5", "MATH 1108/6", "MATH 1108/7", "MATH 1108/8", "MATH 1108/10", "MATH 1108/11", "MATH 1108/12", "MATH 1108/13", "MATH 1108/14", "MATH 1108/15", * "MATH 1208A", "MATH 1208/2", "MATH 1208/3", "MATH 1208/4", "MATH 1208/5", "MATH 1208/6", "MATH 1208/7", "MATH 1208/8", "MATH 1208/9", "MATH 1208/11", "MATH 1208/12", "MATH 1208/13", "MATH 1208/14", "MATH 1208/15", "MATH 1208/16", "MATH 1208/17", "MATH 1208/19", * "MATH 1309A", "MATH 1309/2", "MATH 1309/3", "MATH 1309/4", "MATH 1309/5", "MATH 1309/6", "MATH 1309/7", "MATH 1309/8", "MATH 1309/9", "MATH 1309/10", "MATH 1309/11", "MATH 1309/12", "MATH 1309/13", "MATH 1309/14", "MATH 1309/16", "MATH 1309/17", "MATH 1309/18", "MATH 1309/19", "MATH 1309/20", "MATH 1309/21", "MATH 1309/22", "MATH 1309/24.1", "MATH 1309/24.2", * "MATH 1408A", "MATH 1408/2", "MATH 1408/3", "MATH 1408/4", "MATH 1408/5", "MATH 1408/6", "MATH 1408/7", "MATH 1408/8", "MATH 1408/9", "MATH 1408/10", "MATH 1408/11", "MATH 1408/12", "MATH 1408/13", "MATH 1408/14", "MATH 1408/16", "MATH 1408/17", "MATH 1408/18", "MATH 1408/19", "MATH 1408/20", "MATH 1408/21", "MATH 1408/22", "MATH 1408/24.1", "MATH 1408/24.2", * "CHEM2 104", "CHEM2 204", "CHEM2 205", * "MHMK M01", "MHMK M02", * "MHMK 201", "MHMK 202", "MHMK 203", "MHMK 204", "MHMK 205", "MHMK 206", "MHMK 207", "MHMK 208", * "MHMK 301", "MHMK 302", "MHMK 304", "MHMK 305", "MHMK 306", "MHMK 307", "MHMK 308", "MHMK 309", * "TAB 220", "TAB 221", "TAB 222", "TAB 226", "TAB 227", "TAB 228", "TAB 229", "TAB 230", "TAB 231"};*/ /*void Start() * { * ddlist.AddOptions(AllRoomList); * }*/ public void InitNav() { room = target; floor = target.transform.parent.parent.gameObject; building = target.transform.parent.parent.parent.gameObject; func = GameControl.GetComponent <CreateSearchResult>(); switch (building.name) { case "MATH": ddlist.AddOptions(StartPointMATH); break; case "CHEM2": ddlist.AddOptions(StartPointCHEM2); break; case "MHMK": ddlist.AddOptions(StartPointMHMK); break; case "TAB": ddlist.AddOptions(StartPointTAB); break; default: return; } ddlist.value = 0; }
// 0 = MATH; 1 = CHEM2; 2 = MHMK; 3 = TAB void Start() { func = FunctionObject.GetComponent <CreateSearchResult>(); }