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)); } }
void RewardAdWatched(EventAdWatched eventAdWatched) { if (eventAdWatched.doubleMissionRewards) { EventBroker.Instance().SendMessage(new EventUpdateCoins(coinsToRewardOnSuccessfulAdWatch * 2)); } else { EventBroker.Instance().SendMessage(new EventUpdateCoins(coinsToRewardOnSuccessfulAdWatch)); } }