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(); }
public void SwitchToZoneMenu(int Value) { if (Value != MaxValueCount_Crutch) { ZoneMenuSectionSelect.Hide(); switch (Value) { case 0: //Создание нового процесса MainMenuPanelGameObject.SetActive(false); ZoneCreationPanelGameObject.SetActive(true); break; default: Log.Warning(scr, "Trying to open unknown zone menu section " + Value); break; } MaxValueCount_Crutch = ZoneMenuSectionSelect.options.Count; ZoneMenuSectionSelect.options.Add(new Dropdown.OptionData("Exit")); ZoneMenuSectionSelect.value = MaxValueCount_Crutch; ZoneMenuSectionSelect.options.RemoveAt(MaxValueCount_Crutch); MaxValueCount_Crutch = -1; } }