void SetInitialDifficulty(string difficulty) { switch (difficulty) { case "easy": Medium.SetActive(false); Hard.SetActive(false); break; case "medium": Easy.SetActive(false); Hard.SetActive(false); break; case "hard": Easy.SetActive(false); Medium.SetActive(false); break; } }
public void closeQuestion() { QuestionToActivate.SetActive(false); Good.SetActive(false); Bad.SetActive(false); Medium.SetActive(false); }
public void HardDifficulty() { PlayerPreferences.SetEasyDifficulty(0); PlayerPreferences.SetMediumDifficulty(0); PlayerPreferences.SetHardDifficulty(1); Easy.SetActive(false); Medium.SetActive(false); Hard.SetActive(true); }