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("getCallLog"); #elif UNITY_IOS return ""; #else return ""; #endif } }