コード例 #1
0
 public static void onError(TraxnetError error)
 {
     if (errorPool.ContainsKey(error.zoneId))
     {
         errorPool[error.zoneId] (error);
     }
 }
コード例 #2
0
 public static void onNativeRequestResponse(TraxnetNativeBannerAd result)
 {
                 #if UNITY_ANDROID && !UNITY_EDITOR
     string zoneId = result.zoneId;
     if (result != null)
     {
         if (mMonoBehaviour != null && mMonoBehaviour.isActiveAndEnabled)
         {
             mMonoBehaviour.StartCoroutine(loadNativeBannerAdImages(result));
         }
         else
         {
             if (errorPool.ContainsKey(zoneId))
             {
                 TraxnetError error = new TraxnetError();
                 error.zoneId  = zoneId;
                 error.message = "Invalid MonoBehaviour Object";
                 errorPool[zoneId] (error);
             }
         }
     }
     else
     {
         if (requestErrorPool.ContainsKey(zoneId))
         {
             TraxnetError error = new TraxnetError();
             error.zoneId  = zoneId;
             error.message = "Invalid Result";
             errorPool[zoneId] (error);
         }
     }
                 #endif
 }