this isn’t working for me
public void OnAnswerSelected(int index)
{
if(index == question.GetcorrectAnswerIndex())
{
questionText.text = "Correct!";
Image buttonImage = answerButtons[index].GetComponent<Image>();
buttonImage.sprite = correctAnswerSprite;
}
}
this is the error message i get, ‘QuestionSO’ does not contain a definition for ‘GetcorrectAnswer’ and no accessible extension method ‘GetcorrectAnswer’ accepting a first argument of type ‘QuestionSO’ could be found (are you missing a using directive or an assembly reference?)