少年修仙传客户端代码仓库
lwb
2020-10-21 a709625311ee620314f71945b2f2d205143663f4
9527 解决il2cpp打包报错问题,原因:ios交互的方法没加宏定义
2个文件已修改
20 ■■■■■ 已修改文件
Core/SDK/SDKUtility.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Voice/OpusNative.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/SDK/SDKUtility.cs
@@ -9,9 +9,11 @@
[XLua.LuaCallCSharp]
public class SDKUtility : SingletonMonobehaviour<SDKUtility>
{
#if UNITY_IOS && !UNITY_EDITOR
    [System.Runtime.InteropServices.DllImport("__Internal")]
    private static extern void IOSMessageHandle(string json);
#endif
    public enum E_ChargingType
    {
        NoCharging = 1,
System/Voice/OpusNative.cs
@@ -1,20 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
public static class OpusNative
{
using System.Runtime.InteropServices;
public static class OpusNative
{
#if UNITY_ANDROID || UNITY_EDITOR || UNITY_STANDALONE
    [DllImport("opus")]
    [DllImport("opus")]
#elif UNITY_IOS
    [DllImport("__Internal")]
#endif
    public static extern int native_opus_encode(short[] pcm, int len, byte[] opus);
#if UNITY_ANDROID || UNITY_EDITOR || UNITY_STANDALONE
    [DllImport("opus")]
    [DllImport("opus")]
#elif UNITY_IOS
    [DllImport("__Internal")]
#endif
    public static extern int native_opus_decode(byte[] opus, int len, short[] pcm);
    public static extern int native_opus_decode(byte[] opus, int len, short[] pcm);
}