Ejemplo n.º 1
0
 public void onRewardGranted(FGLEnhance.RewardType rewardType, int count)
 {
     GameButtons.hintCount = 3;
     GameButtons.loadAds.SetActive (false);
     GameButtons.loadAds.GetComponent<Button> ().interactable = true;
     GameButtons.hintLeft.text = 3 + "";
 }
Ejemplo n.º 2
0
 //public void onRewardGranted, onRewardDeclined, onRewardUnavailable
 public void onRewardGranted(FGLEnhance.RewardType rewardType, int count)
 {
     SelectPlayer.score = GameStart.rewardScore;
     SelectPlayer.money = GameStart.rewardMoney;
     UpdateDbase.updateDatabase();
     UpdateDbase.updateScore();
     UpdateDbase.updateMoney();
 }
Ejemplo n.º 3
0
 // Callbacks for our rewarded ad:
 private void OnRewardGranted(FGLEnhance.RewardType rewardType, int count)
 {
     if (rewardType == FGLEnhance.RewardType.REWARDTYPE_COINS)
     {
         Log(string.Format("Granted reward of {0} coins", count));
     }
     else
     {
         Log(string.Format("Granted reward"));
     }
 }
Ejemplo n.º 4
0
 //onRewardGranted, onRewardDeclined, onRewardUnavailable
 public void onRewardGranted(FGLEnhance.RewardType rewardType, int count)
 {
     hintCount = 3;
     hintCountTxt.text = "" + hintCount;
     hintDisableBtn.SetActive (false);
 }
Ejemplo n.º 5
0
 //onRewardGranted, onRewardDeclined, onRewardUnavailable
 public void onRewardGranted(FGLEnhance.RewardType rewardType, int count)
 {
     Prefs.setPoints (3, 0);
 }