Exemple #1
0
 void TimeStampAdWatched(EventAdWatched eventAdWatched)
 {
     if (!eventAdWatched.doubleMissionRewards)
     {
         button.interactable = false;
         TimeStamp lastAdTimeStamp = new TimeStamp(LastAdWatched, timeManager.timeHandler.GetTime());
         lastAdTimeStamp.Save();
         StartCoroutine(timeManager.OnComplete(durationBetweenAdWatches, () => button.interactable = true));
     }
 }
Exemple #2
0
 void RewardAdWatched(EventAdWatched eventAdWatched)
 {
     if (eventAdWatched.doubleMissionRewards)
     {
         EventBroker.Instance().SendMessage(new EventUpdateCoins(coinsToRewardOnSuccessfulAdWatch * 2));
     }
     else
     {
         EventBroker.Instance().SendMessage(new EventUpdateCoins(coinsToRewardOnSuccessfulAdWatch));
     }
 }