I’m trying to build a quiz game through unity tutorials in youtube, yet a script that the developer wrote doesn’t work and I can’t understand why. I’m leaving a link below that the developer suggested and additionally I’m writing the errors that unity console gave.
The doesn’t-work script is SimpleObjectPool script.
The errors:
cs(18,40): error cs1026: Unexpected symbol “;” , expecting “)”
cs (18,43): error cs2016: unexpected symbol “)” , expecting “)”
cs(24,8): error cs1525: unexpected symbol “else”
cs(46,38): error cs1026: Unexpected symbol “;” , expecting “)”
cs(46,71): error cs1525: unexpected symbpş “)” , expected “;” or “}”
cs(55,8): cs(24,8): error cs1525: unexpected symbol “else”
Thanks for your answer but this is not the only error that you talked about i have just copied and pasted it but i saw the errors, i don’t know why. The code is in this link: Recorded Video Session: Quiz Game 1 - Unity Learn