public void OnOptionClick(int option) { if(!canClick) return; SoundManager.GetInstance().OnClickSound(); bool result = option == correctOption; if(!result) { optionGO[option].GetComponent<Button>().image.sprite = wrongSprite; SoundManager.GetInstance().wrongAns++; ParseManager.IncrementWrong(); if(SoundManager.GetInstance().correctAnsInRow>1) { ParseManager.AddCorrectInRow(SoundManager.GetInstance().correctAnsInRow); } SoundManager.GetInstance().correctAnsInRow = 0; } else { ParseManager.IncrementCorrect(); SoundManager.GetInstance().correctAns++; SoundManager.GetInstance().correctAnsInRow++; } optionGO[correctOption].GetComponent<Button>().image.sprite = rightSprite; if(SoundManager.GetInstance().FEEDBACK) LoadFeeback(result); nextBtn.SetActive(true); canClick = false; }