Exemplo n.º 1
0
 public void ShowOfferWall()
 {
     try {
         SetKillWhenDone(false);
         ads.Call("showOfferWall", AppBrain.GetCurrentActivity());
     } catch (Exception e) {
         Debug.LogError(e);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 private static void SetKillWhenDone(bool killWhenDone)
 {
     if (killWhenDone)
     {
         appbrainUnity.CallStatic("killWhenDone", AppBrain.GetCurrentActivity());
     }
     else
     {
         appbrainUnity.CallStatic("dontKillWhenDone");
     }
 }