|
Hi Im having a bit of trouble with a script for my platform game. The scripts (there are two) are made in Javascript, since thats the only language i know. The scripts are supposed to turn on and off an orb at the end when you collect a certain amount of points. But the script doesnt do that. Up until now i have had help from a lot of people creating this script and i have finally managed to turn the orb offline... however, now i cant turn the orb back on. Here are the two script: Main "Points System" script: And here is the script for the "orb": I really hope someone can help since this is the last script i need done for the gameplay.
(comments are locked)
|
|
Read through the script, it looks fine. I wouldn´t use gameObject.Find thought.
(comments are locked)
|

Hello! When posting some code please highlight it and press the "10101" button it will make it a lot more readable.
I already did this for you.
Secondly there is no JAVA inside Unity3D, its Javascript and thats NOT the same.
Sorry but you knew what i meant so i cant see the big deal in that
Its about being precise as your questions and answers will be in here for everyone else, forever. So the less attention we pay to details, the worse the result. Again, I just added it as a comment, I didnt vote you down for it. You on the other hand ought to edit your own question and FIX the error. Thats how communities like this work. Keep up the good work. :o)