From 2fdb88b4d24d586f1e200ab17bf55ac55514e6b7 Mon Sep 17 00:00:00 2001
From: allez <305670599@qq.com>
Date: 星期四, 27 五月 2021 11:50:49 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/snxxz_client
---
Assets/ILRuntime/Src/ILBehaviourProxy.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Assets/ILRuntime/Src/ILBehaviourProxy.cs b/Assets/ILRuntime/Src/ILBehaviourProxy.cs
index f28e34b..e8547b2 100644
--- a/Assets/ILRuntime/Src/ILBehaviourProxy.cs
+++ b/Assets/ILRuntime/Src/ILBehaviourProxy.cs
@@ -117,8 +117,10 @@
ILBehaviourHolder holder;
if (ilBehaviourHolders.TryGetValue(name, out holder))
{
- if (holder.onDisable != null)
+ if (holder.onDisable != null && appDomain != null)
+ {
appDomain.Invoke(holder.onDisable, holder.instance);
+ }
}
}
}
--
Gitblit v1.8.0