|
In my game I am developing I attempted to add a script which would change my 3D text value when triggered. Got 2 errors though... :-( My Code looks like this:
But I got an error that said this:
When I tried to bypass this I also recieved another error which said something like this (not exact):
Does this have to do with it being Unity iPhone? Please help by posting a better piece of code or by explaining what is wrong. Thanks alot! :D
(comments are locked)
|
|
On iPhone you can't do dynamic typing, so you need to do something like this: Thanks alot works perfectly!!! :)
Jun 18 '10 at 01:24 PM
MikezNesh
One Question: How could I increment the value on every Collision?
Jun 18 '10 at 01:45 PM
MikezNesh
I defined a variable (counter) and an increment (counter ++). But when I do textMesh.text = counter; I get an error response: 'cannot convert "int" to "string"'. How do I solve this issue?
Jun 18 '10 at 01:50 PM
MikezNesh
textMesh.text = counter.ToString();
Jun 18 '10 at 02:05 PM
Mike 3
Double Thanks! :)
Jun 19 '10 at 12:05 PM
MikezNesh
(comments are locked)
|
