Esempio n. 1
0
        void Init()
        {
            var souse = AScriptableObject.Get <Values>();

            DynamicPermission.GetPermission(
                "android.permission.READ_PHONE_STATE",
                "android.permission.ACCESS_COARSE_LOCATION",
                "android.permission.ACCESS_FINE_LOCATION",
                "android.permission.WRITE_EXTERNAL_STORAGE");

            YLHProvider.Get().CallStatic("InitSDK", "mark", souse.appid, debug);
            YLHProvider.Get().CallStatic("InitReward", "mark", souse.rewardid);
            YLHProvider.Get().CallStatic("InitInterAd", "mark", souse.insterid);
            YLHProvider.log?.CallStatic("ShowLog", "mark", debug);
        }
Esempio n. 2
0
 internal void ShowInternal()
 {
     YLHProvider.Get().CallStatic("ShowRewardAd", "mark");
 }
Esempio n. 3
0
 public bool isReady()
 {
     return(YLHProvider.Get().CallStatic <bool>("isReady", "mark"));
 }
Esempio n. 4
0
        internal async void LoadAd()
        {
            await Task.Delay(200);

            YLHProvider.Get().CallStatic("LoadRewardAd", "mark", proxy);
        }