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;
asked May 06, 2011 at 06:14 PM
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.
answered May 06, 2011 at 06:19 PM