Example #1
0
 public void ShowOfferWall()
 {
     try {
         SetKillWhenDone(false);
         ads.Call("showOfferWall", AppBrain.GetCurrentActivity());
     } catch (Exception e) {
         Debug.LogError(e);
     }
 }
Example #2
0
 public bool MaybeShowInterstitial(bool quitWhenDone)
 {
     try {
         SetKillWhenDone(quitWhenDone);
         return(ads.Call <bool>("maybeShowInterstitial", AppBrain.GetCurrentActivity()));
     } catch (Exception e) {
         Debug.LogError(e);
         return(false);
     }
 }
Example #3
0
 private static void SetKillWhenDone(bool killWhenDone)
 {
     if (killWhenDone)
     {
         appbrainUnity.CallStatic("killWhenDone", AppBrain.GetCurrentActivity());
     }
     else
     {
         appbrainUnity.CallStatic("dontKillWhenDone");
     }
 }