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