In my scene I have 2 Charas (Wasch and Lucat) walking next to each other.
One script controlls the switching.
Here's the function that gets activated by the camCall.
Currently the camCall is commented out and if I hit space I get the "WaschActive"-Message.
Now the strange thing is: if I un-comment it, Unity freezes before it even prints the "WaschActive"-Message! O.o No Debug.Log-calls at all (non of the camMove-script either). No errors. The statistics-window freezes as well...
So what's happening?
Thanks a lot in advance!
I put in some yield; and now it doesn't crash anylonger! =D It's still weird, but sort of works... =)
What's likely happening is that those while loops are just spinning away causing Unity to freeze before it gets a chance to redraw the console. If you check the actual logs (press "Open Editor Log" in the control bar of the console before you hit play), you should see your log messages at the very end.
answered Jan 12 '10 at 07:07 PM
Your camera code is a real problem.
answered Jan 12 '10 at 08:10 PM