生成dll,支持unicode,mfc,多线程。只需要把dll放到工程目录Assets\Plugins下。
using System.Runtime.InteropServices;
[DllImport ("testUnityMsb")] // dll名
private static extern int mbx(); // 函数声明,对应dll中函数