|
I have done a function to use in a script for one of my monsters (on my 3d plattaform game) and I have a problem with it, when I test the game, it crashes with unity and I have to terminate the process through Ctrl+alt+del. Do you have any idea what is going wrong? Here you have the code (I have a rigidbody on unity too to use it as bullet, and its passed through the editor to the script): var projectile : Rigidbody;
(comments are locked)
|
|
You put yield outside of your infinite loop. Put in before the curly brace instead of after. If you line up your curly braces better, you'll have a better chance of catching mistakes yourself. Thanks, now Unity don't crash, but there is a very weird effect on my script: Here you have a link on youtube about the effect, I have just recorded it : http://www.youtube.com/watch?v=b9xm_UZRqX0
May 06 '11 at 08:26 PM
Infinity
Please elaborate.
May 07 '11 at 02:27 AM
Jessy
elaborate what?
May 07 '11 at 11:06 AM
Infinity
I don't have a clue what is going right or wrong in that movie. Why didn't you narrate it?
May 07 '11 at 02:54 PM
Jessy
(comments are locked)
|
