public void CloseMenu() { MenuAudio.PlayCityAudio(); UIButtons[MenuOpened - 1].GetComponent <Button>().interactable = false; UIButtons[MenuOpened - 1].GetComponent <Button>().interactable = true; switch (MenuOpened) { case 1: settingsMenu.DesactivateMenu(); break; case 2: characterMenu.DesactivateMenu(); break; case 3: break; } ExitMenu.interactable = false; MenuOpened = 0; }