void CloseCurrentlyOpenMenu() { ReopenRegularMenu(); //GraphicsMenuObj.SetActive(false); ControlsPauseScreen.SetActive(false); VolumePauseScreen.SetActive(false); PauseScreenOptionOpened = enumPauseScreenOptions.None; MenuIsOpen = false; }
void ResetPauseMenuOptions() { VolumeSliderCurrentlySelected = 0; MenuIsOpen = false; move = 0; buttonPressTime = 0; string LastDeviceUsed = Controls.LastDeviceStyle.ToString(); string LastCheckDeviceUsed = LastDeviceUsed; //GraphicsMenuObj.SetActive(false); ControlsPauseScreen.SetActive(false); VolumePauseScreen.SetActive(false); ReopenRegularMenu(); }
void OpenMenuItemInvokeFuction() { GameObject MenuToOpenObj = null; switch (PauseScreenOptionOpened) { case enumPauseScreenOptions.Controls: MenuToOpenObj = ControlsPauseScreen; break; case enumPauseScreenOptions.Volume: MenuToOpenObj = VolumePauseScreen; break; } //GraphicsMenuObj.SetActive(false); ControlsPauseScreen.SetActive(false); VolumePauseScreen.SetActive(false); MenuToOpenObj.SetActive(true); MenuIsOpen = true; CloseRegularMenu(); PauseScreenOptionOpened = PauseScreenOption; }