//Sets up the outer walls and floor (background) of the game board. void BoardSetup(Level currentLevel) { if (currentLevel != null) { //Instantiate Board and set boardHolder to its transform. boardHolder = new GameObject("Board").transform; GameObject[] Rooms = roomManager.RoomSetup(currentLevel, boardHolder); foreach (GameObject room in Rooms) { room.transform.SetParent(boardHolder, false); } roomManager.transform.SetParent(boardHolder); // Retrieve the player and set it to the start position this.playerWrapper = GameObject.Find("PlayerWrapper"); this.playerWrapper.SetActive(false); Debug.Log("Colocando al personaje eeeeen: " + currentLevel.playerStart); this.playerWrapper.transform.position = currentLevel.playerStart; this.playerWrapper.SetActive(true); } }