,Unity tutorial's script doesn't work!
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.
https://unity3d.com/learn/tutorials/topics/scripting/answer-button 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"
Answer by tormentoarmagedoom · Jun 22, 2018 at 09:22 PM
Good day.
I didnt saw the video, its unity oficial video I'm 99,99% sure the code works.
The error you saym read what it says, at line 18 of that code, the 4th symbol is a ";" and was expected a ")"
Go look it and come with answer, or show us the script.
Bye
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: https://unity3d.com/learn/tutorials/topics/scripting/answer-button and the sub-heading is SimpleObjectPool.
Answer by gkose · Jun 22, 2018 at 09:28 PM
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: https://unity3d.com/learn/tutorials/topics/scripting/answer-button
and the sub-heading is SimpleObjectPool.
Your answer
Follow this Question
Related Questions
How do i make an uppercut attack? 0 Answers
Script problem: Trying to make the code of this script run at a set interval (GUI handle object) 1 Answer
Script error 0 Answers
Need help disabling a script in another GameObject 1 Answer
How To change a Text Object's Color Randomly using Color 32? 2 Answers