public static void NextRoom(string sceneName, string diagramCode) { PlayerEventHandler.RoomMovement(SceneManager.GetActiveScene().name, sceneName); DiagramKeeper.SetDiagramCode(diagramCode); DiagramKeeper.GetCurrDiagram(); SceneManager.LoadScene(sceneName); SceneManager.LoadScene("PlayerUI", LoadSceneMode.Additive); inUIscene = false; }
void Start() { Cursor.lockState = CursorLockMode.None; //Get Canvas Scaler component canvas_ = GetComponent <Canvas>(); //Get Graphic and Data components of the ERDiagram erData_ = DiagramKeeper.GetCurrDiagram(); erDiagram_ = GetComponent <ERDiagram>(); //Setup path display pathDisplay.text = GetPathToDiagram(); //Load all names on the nameDropdown Menu List <string> dropdownOptions = GlobalController.config.nodeNames; //Apply the names to the DropDown Component nameList = nameMenu.GetComponent <Dropdown>(); nameListAttr = nameMenuAtr.GetComponent <Dropdown>(); nameList.AddOptions(dropdownOptions); nameListAttr.AddOptions(dropdownOptions); //Create diagram form diagramData erDiagram_.DrawDiagram(erData_); }