Hey guys not sure where im going wrong with this code
void Question ( Vector2 pos , string q , string a , string b , string c , string d , int correct ){
questionText = q;
answers[0] = a;
answers[1] = b;
answers[2] = c;
answers[3] = d;
int st= "ABCD";
for (int i= 0; i < answers.Length; i++) {
displayAnswers[i] = st[i]+": "+answers[i];
}
correctAnswerIndex = correct;
correctAnswer = "Correct answer: " + answers[correct];
CalcRects(pos);
}
↧