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