|
In my scene I have 2 Charas (Wasch and Lucat) walking next to each other. One script controlls the switching. The Controller-Script:
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! Greetz, Ky. ~~~~~~~~~~~~~ Edit: I put in some yield; and now it doesn't crash anylonger! =D It's still weird, but sort of works... =)
(comments are locked)
|
|
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. Never saw that EditorLog-Button! aha! =D ... I tried what you said and edited my question, though I don't think it's of any use...? But anyway thank you for your answer! =) I suspected infinity-loops at first but thought that can't be it if the Debug.Log doesn't get called. But if it's possible that it does get called, but just not drawn, that's probably it... If the cam never reaches the first PathPoint, I suppose my lerp doesn't work :-/ what am I doing wrong?
Jan 12 '10 at 07:33 PM
SisterKy
(comments are locked)
|
|
Your camera code is a real problem. Yes! =D I put in yields, now it works... sorta, kinda, but anyway! At least something to work with =D (I knew about yield but totally misunderstood it's usage...) Thank you =)
Jan 12 '10 at 08:13 PM
SisterKy
(comments are locked)
|
