Beispiel #1
0
    /// <summary>
    /// Handle MoPub SDK Rewarded Video Ad Closed event
    /// <param name="pAdUnitId">The Ad Unit ID assocated with this ad.</param>
    /// </summary>
    private void OnRewardedVideoClosedEvent(string pAdUnitId)
    {
        _adInfoText.text = "Rewarded Video Ad Dismissed: " + pAdUnitId;

        // Add the reward to the reward counter display.
        _rewardCounter.AddReward();
    }
Beispiel #2
0
 public void AddReward()
 {
     rewardCounter.AddReward(reward);
 }