Answer by Graham Dunnett
You have a gazillion problems. I've editted your script and added some comments. Maybe watch some of the scripting tutorials on the Learn site. A common mistake is you do not write if statements...
View ArticleAnswer by AndreasX12
Okay, so the error is in this line of code: food = 0; As far as I know, you can't change a gameObject to 0. I'm sorry, but I can't help you further than that :-) Thanks, Andreas :-)
View ArticleAnswer by Graham-Dunnett
You have a gazillion problems. I've editted your script and added some comments. Maybe watch some of the scripting tutorials on the Learn site. A common mistake is you do not write if statements...
View ArticleAnswer by AndreasX12
Okay, so the error is in this line of code: food = 0; As far as I know, you can't change a gameObject to 0. I'm sorry, but I can't help you further than that :-) Thanks, Andreas :-)
View Article
More Pages to Explore .....