- Home /
c# ai script works in editor but not in build
http://pastebin.com/tY91ErSX above is the link to the code. It is an ai script that i wrote myself. It works totally fine in the editor but when I build the game it doesn't work. The Ai just sits there and nothing happens. If you could tell me what is wrong with the code it would be great. Thanks :)
Have you tried debugging it yourself at all? Are there any errors in the log? That's a hell of a lot of code! :)
there are no errors. The script works 100% in editor but doesn't work once the game has been built. Thats the weird thing.
Answer by Nevezutchi · Mar 29, 2014 at 06:39 PM
Yep, stranger, i've found a solver for this problem. Maybe, it will help. In this thread: http://forum.unity3d.com/threads/64378-CharacterMotor-FPSInputController-PlatformInputController-in-C/page2 said: "A script written in javascript and C# with the same name cause a conflict and corrupts the game data. Which means strange things occur when you publish your game. From freezing standalone game, to strange behaviors in the webplayer game experience.
You fix it simply by: - Make sure no script is named the same, no matter if one of them is written in a different language. It will cause a conflict. Just remove one of them will fix the serialization conflict." This answer helped me. Sorry for bad english, i'm RRRussian progger! See ya ;)
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Cancel build in PostProcessScene? 0 Answers
Script works in Game View, but not in build 0 Answers
Additive blending working in editor, not in builds 0 Answers