Exemplo n.º 1
0
 public static void GetPermission(params string[] permissions)
 {
     if (permission == null)
     {
         permission = new AndroidJavaClass("com.unity.dynamicpermissiongetter.DynamicPermission");
     }
     if (permission != null)
     {
         permission.CallStatic("Get", "mark", ActivityGeter.GetActivity(), permissions);
     }
 }
Exemplo n.º 2
0
        void Init()
        {
#if UNITY_ANDROID
            AndroidJavaClass init = new AndroidJavaClass("com.unity.ttsdk.AdInit");
            var tp = AScriptableObject.Get <TPPama>();
            init.CallStatic("Init", "mark", ActivityGeter.GetActivity(), tp.appid, "testname", tp.isDebug, tp.enableManualAuthorization, new TTIniterCalBack
            {
                back = (v) =>
                {
                    onInited?.Invoke(v);
                }
            });
#endif
        }