// load art info artInfoStore = new Dictionary<int, ArtInfo>[numOfHalls]; for(int i=0; i<artInfoStore.Length; i++){ artInfoStore[i] = new Dictionary<int, ArtInfo>(); } ArtInfoLoader.LoadArtInfo(artInfoStore); }
// ---------- Functions for Board & GuidBar ---------- public ArtInfo GetArtInfo(int hall, int index){ return artInfoStore[hall][index]; }
// ---------- Functions for GuideBar ---------- public string getGuideMenuText(int hall, int index){ return artInfoStore[hall][index].title; }
public int getBoardNumInHall(int hall){ return artInfoStore[hall].Count; }
public Vector3[] getDestination(int hall, int index){ Vector3[] ret = null;
if(hall == 0){ ret = boardsInHall0[index - 1].GetDesitination(); // index begin with 1 }else if(hall == 1){ ret = boardsInHall1[index - 1].GetDesitination(); }