// Start is called before the first frame update void Start() { xmlReader = GameObject.FindObjectOfType <XML_Reader>(); mtd = FindObjectOfType <MultiTargetDisabler>(); paletPosition = new Dictionary <string, Vector3>(); placedBoxes = new List <string>(); setOption(SliderHandler.boxHeightLevel); // setOption(0); }
public Controller() { Reader = new XML_Reader();; ScoreQCM = 0; ScoreTotalQCM = 0; ScoreDijkstra = 0; ScoreTotalDijkstra = 3; QuestionsTraitees = new List <int>(); }
//function for creating a coliader around a box public void makeBlueBox(string boxName) { if (this.colider == null) { xmlReader = GameObject.FindObjectOfType <XML_Reader>(); Vector3 size = xmlReader.getSizeByName(this.name); this.colider = Instantiate(colliderPrefab, this.transform); this.colider.transform.localScale = size * .8f; } }
// Start is called before the first frame update void Start() { listaCollidera = new List <GameObject>(); xmlReader = GameObject.FindObjectOfType <XML_Reader>(); listaMultiTargeta = new List <GameObject>(); for (int i = 0; i < transform.childCount; i++) { GameObject b = this.transform.GetChild(i).gameObject; Vector3 size = xmlReader.getSizeByName(b.name); GameObject col = Instantiate(colliderPrefab, b.transform); col.transform.localScale = size * .8f; listaCollidera.Add(col); } }
// Start is called before the first frame update void Start() { // boxRender = GameObject.FindObjectsOfType<BoxRender>()[1]; //paletPosition = new Dictionary<string, Vector3>(); xmlReader = GameObject.FindObjectOfType <XML_Reader>(); //int option = 1; setOption(SliderHandler.boxHeightLevel); this.scanBoxes = new List <Box>(); this.boxesAtPallet = new List <Box>(); this.boxPointer = 0; }
private void Awake() { if (instance != null) { Destroy(this.gameObject); return; } instance = this; DontDestroyOnLoad(this.gameObject); #if (UNITY_EDITOR || UNITY_STANDALONE_WIN) filePath += (Application.streamingAssetsPath + "/" + fileName); #elif UNITY_ANDROID filePath += Application.persistentDataPath + "/" + fileName; #endif Debug.Log(filePath); readCompleted = false; //scenarioToDict.Load(filePath); //readCompleted = true; }
// Start is called before the first frame update void Start() { paletPosition = new Dictionary <string, Vector3>(); this.initialization(); xmlReader = GameObject.FindObjectOfType <XML_Reader>(); }