public void CheckCorrect(int value) { if (quiz.CheckCorrect(value)) { panel.SetActive(false); } else { panel.SetActive(false); GameObject.FindGameObjectWithTag("Monster").GetComponent <MonsterController>().JumpScare(); } }