This commit is contained in:
2020-12-01 23:32:28 +08:00
parent 98f0941160
commit e786fd266d
15 changed files with 294 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class CallLogUtl
{
const string className = "com.coolape.tianrun.U3dPlugin";
#if UNITY_ANDROID
static AndroidJavaObject _plugin;
public static AndroidJavaObject plugin
{
get
{
if (_plugin == null)
{
_plugin = new AndroidJavaObject(className);
}
return _plugin;
}
}
#endif
public static string getCallLog()
{
#if UNITY_ANDROID
return plugin.CallStatic<string>("getCallLog");
#elif UNITY_IOS
#else
return "";
#endif
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 06baaefd3505747e19fe243a0b84bc56
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: