Пример #1
0
 public static void InitializeRewardedAdSystem(string[] adUnits)
 {
     if (Application.isEditor)
     {
         return;
     }
     MCAdsBinding.LogInfo(MethodBase.GetCurrentMethod().Name);
     MCAdsBinding.GetAdvertisingId();
     if (adUnits.Length < 1)
     {
         MCAdsBinding.LogMissingAdUnitID(MethodBase.GetCurrentMethod().Name);
         return;
     }
     if (adUnits.Length > 0)
     {
         string text = adUnits[0];
         for (int i = 1; i < adUnits.Length; i++)
         {
             text = text + "," + adUnits[i];
         }
         MCAdsBinding._plugin.Call("initializeRewardedAdSystem", new object[]
         {
             text
         });
     }
 }
Пример #2
0
 public static string GetGIDA()
 {
     return(MCAdsBinding.GetAdvertisingId());
 }