之前在找一个Unity C#和Js共容的开发解决方案,发现实在是难啊难,找到大半夜,结果在论坛看到一哥们的解决方案这么一说,差点笑死
==============================================================================
Read this: Script compilation and look at this discussion in forum.
Basically, the javascript isn't compiled at the moment C# tries to refer it. Solution is to place the javascript files in the Standard Assets hierarchy to force it to be compiled before the C# scripts. If possible, try to stick to one language, saves a lot of headaches.
===============================================================================
我的疼苦,不是,应该一般人的爽快是建立在别人的痛苦之上,这说法真心没错,看到地球的另一个角落有那么一些人和我一样痛苦,我也就安心了