Example #1
0
 public void GetReward()
 {
     if (onGetReward != null)
     {
         onGetReward(adParam);
     }
     onGetReward = null;
 }
Example #2
0
        private void HandleShowResult(string result)
        {
            switch (result)
            {
            case "0":
                Debug.Log("The ad was successfully shown.");
                // YOUR CODE TO REWARD THE GAMER
                // Give coins etc.
                GetReward();
                break;

            case "1":
                Debug.LogError("The ad failed to be shown.");
                onGetReward = null;
                break;
            }
        }
Example #3
0
 void InvokeRewardVideoCallback()
 {
     print("(4)   %%%%%%%  GetReward Call:::::::;    " + isPlayRewardedVideoSuccess);
     if (isPlayRewardedVideoSuccess)
     {
         adParam = sspPlacementName;
         //GetReward();ß
         HandleShowResult("0");
         isPlayRewardedVideoSuccess = false;
         sspPlacementName           = "";
     }
     else
     {
         sspPlacementName = "";
         onGetReward      = null;
         HandleShowResult("1");
     }
 }