This commit is contained in:
2020-08-28 09:51:37 +08:00
parent 3ece010fc1
commit 6b82fd5419
69 changed files with 1255 additions and 1024 deletions

View File

@@ -31,7 +31,8 @@ public class MyAudioPlayerByUrl : MonoBehaviour
#if UNITY_EDITOR
//You should have a fallback to normal AudioSource playing in your game so you can also hear sounds while developing.
Debug.Log("Please try this in a real device!");
#else
return;
#elif UNITY_ANDROID
if (bufferSize <= 0)
{
DeviceAudioInformation deviceAudioInformation = NativeAudio.GetDeviceAudioInformation();

View File

@@ -29,7 +29,7 @@ public class CallListner : CLBehaviour4Lua
#if UNITY_IOS
[System.Runtime.InteropServices.DllImport("__Internal")]
private static extern void _init(string goName);
private static extern void _initCallListner(string goName);
#endif
public void init()
@@ -38,7 +38,7 @@ public class CallListner : CLBehaviour4Lua
#if UNITY_ANDROID
plugin.Call("init", gameObject.name);
#elif UNITY_IOS
_init(gameObject.name);
_initCallListner(gameObject.name);
#endif
}