Пример #1
0
 public void SubscribeToScoutingTimerChange(PPData.DataActionf dataAction)
 {
     if (HasScoutingTimer)
     {
         scoutingTimer.SubscribeToTimeChange(dataAction);
     }
 }
Пример #2
0
 void resetAndBeginGiftTimer()
 {
     collectGiftButton.ToggleInteractable(false);
     collectGiftButton.TryUnsubscribeAll();
     (dailyGiftTimer as ISubscribable).TryUnsubscribeAll();
     dailyGiftTimer.SubscribeToTimeChange(handleDailyGiftCountDownChange);
     dailyGiftTimer.SubscribeToTimeUp(makeDailyGiftAvailableToRedeem);
     dataController.StartDailyGiftCountdown(dailyGiftTimer);
     dailyGiftTimer.Begin();
 }
Пример #3
0
 void setupTimer(PPTimer timer)
 {
     timer.SubscribeToTimeChange(callOnScoutingTimerChange);
     timer.SubscribeToTimeUp(callOnScountingTimerEnd);
 }
Пример #4
0
 protected override void setReferences()
 {
     base.setReferences();
     timer.Init();
     timer.SubscribeToTimeChange(updateVisualTimer);
 }
Пример #5
0
 public void StartDailyGiftCountdown(PPTimer timer)
 {
     timer.SubscribeToTimeChange(updateDailyGiftCountdown);
 }