void Awake() { //Instantiate other scripts createVis = new CreateVis(); //initialize questions check_qt(); //read and get CSV values csv = new ReadCSV(); List <List <object> > Data = csv.getList(filename);; //Create the Vis GameObject Vis = createVis.Create10x10(Data, scaleWL, BarWidth); //Final Transformations Vis.transform.localScale = new Vector3(MasterScale, MasterScale, MasterScale); Vis.transform.position = new Vector3(0.5f, 0.3f, 1.2f); }
void Awake() { //Instantiate other scripts createVis = new CreateVis(); //Set filename for correct questions //qt.setFilename(filename); //read and get CSV values csv = new ReadCSV(); List <List <object> > Data = csv.getList(filename);; //Create the Vis GameObject Vis = createVis.Create10x10(Data, scaleWL, BarWidth); //Final Transformations Vis.transform.localScale = new Vector3(MasterScale, MasterScale, MasterScale); Vis.transform.parent = GameObject.Find("Stand").transform; Vis.transform.localPosition = Vector3.zero; Vis.transform.localPosition = new Vector3(-0.528f, 0.64f, -0.528f);//magic numbers galore! }