//Function to be called by menu buttons to change difficulty public void ChangeDifficulty() { foreach (GameObject button in difficultyButtons) { button.SetActive(false); } switch (difficulty) { case Difficulty.easy: difficulty = Difficulty.medium; difficultyButtons[1].SetActive(true); break; case Difficulty.medium: difficulty = Difficulty.hard; difficultyButtons[2].SetActive(true); break; case Difficulty.hard: difficulty = Difficulty.easy; difficultyButtons[0].SetActive(true); break; } wallManager.ChangeDifficulty(); arena.ChangeDifficulty(); }