I have a strange problem with the code below:
The rotateSpeed variable does not affect the speed of rotation. But if I remove the variable from the Update function and just put a number there, the rotation speed is affected. Can anyone see what the problem is?
asked Jul 07 '10 at 04:54 PM
If you do that and put it on a script that's attached to a prefab, the value that it's going to use for your member variable is the one that's stored on the prefab.
If you want it to solely be based on script and not from the prefab data, declare it to be
answered Jul 07 '10 at 05:08 PM