↧
Answer by e.bonneville
I see one thing that could be the problem. You're declaring the integer variable adj before passing it into the function. Due to JS's automatic inference, it's declared as 0 (or possibly null, don't...
View ArticleAnswer by Parthon
Firstly, remove adjust from Start() and change var healthBarLength; to var healthBarLength : int = maxBarLength;Now are you sure that the gears are getting picked up? Add in a Debug.Log() to Adjust...
View Article