public void SwitchToProcessMenu(int Value) { if (Value != MaxValueCount_Crutch) { ProcessesMenuSectionSelect.Hide(); switch (Value) { case 0: //Создание нового процесса _PlayerControl._PopupMode = true; MainMenuPanelGameObject.SetActive(false); ProcessCreationPanelGameObject.SetActive(true); Links.Processes.ValueChanged(0); break; default: Log.Warning(scr, "Trying to open unknown process menu section " + Value); break; } MaxValueCount_Crutch = ProcessesMenuSectionSelect.options.Count; ProcessesMenuSectionSelect.options.Add(new Dropdown.OptionData("Exit")); ProcessesMenuSectionSelect.value = MaxValueCount_Crutch; ProcessesMenuSectionSelect.options.RemoveAt(MaxValueCount_Crutch); MaxValueCount_Crutch = -1; } }
public void SwitchToMainMenu() { _PlayerControl._PopupMode = false; StructureCreationPanelGameObject.SetActive(false); StructurePlacingPanelGameObject.SetActive(false); ProcessCreationPanelGameObject.SetActive(false); ZoneCreationPanelGameObject.SetActive(false); MainMenuPanelGameObject.SetActive(true); ProcessesMenuSectionSelect.Hide(); StructureMenuSectionSelect.Hide(); }