|
|
@@ -58,6 +58,9 @@ namespace ET
|
|
|
//byte[] pdbBytes = File.ReadAllBytes(Path.Combine("../Unity/", Define.BuildOutputDir, "Code.pdb"));
|
|
|
|
|
|
appDomain = new ILRuntime.Runtime.Enviorment.AppDomain();
|
|
|
+#if DEBUG && (UNITY_EDITOR || UNITY_ANDROID || UNITY_IPHONE)
|
|
|
+ this.appDomain.UnityMainThreadID = System.Threading.Thread.CurrentThread.ManagedThreadId;
|
|
|
+#endif
|
|
|
MemoryStream assStream = new MemoryStream(assBytes);
|
|
|
MemoryStream pdbStream = new MemoryStream(pdbBytes);
|
|
|
appDomain.LoadAssembly(assStream, pdbStream, new ILRuntime.Mono.Cecil.Pdb.PdbReaderProvider());
|