uplev xlua
This commit is contained in:
4
Assets/XLua/Src/DelegateBridge.cs
Executable file → Normal file
4
Assets/XLua/Src/DelegateBridge.cs
Executable file → Normal file
@@ -86,7 +86,7 @@ namespace XLua
|
||||
|
||||
public static class HotfixDelegateBridge
|
||||
{
|
||||
#if UNITY_IPHONE && !UNITY_EDITOR
|
||||
#if (UNITY_IPHONE || UNITY_TVOS) && !UNITY_EDITOR
|
||||
[DllImport("__Internal", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern bool xlua_get_hotfix_flag(int idx);
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace XLua
|
||||
DelegateBridge.DelegateBridgeList = newList;
|
||||
}
|
||||
DelegateBridge.DelegateBridgeList[idx] = val;
|
||||
#if UNITY_IPHONE && !UNITY_EDITOR
|
||||
#if (UNITY_IPHONE || UNITY_TVOS) && !UNITY_EDITOR
|
||||
xlua_set_hotfix_flag(idx, val != null);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user