Beispiel #1
0
 protected override void fetchReferences()
 {
     base.fetchReferences();
     if (feedingTimer == null)
     {
         feedingTimer = new PPTimer(GetFeedingTime, 1f);
         feedingTimer.SetTimeRemaining(0, false);
     }
     feedingTimer.SubscribeToTimeBegin(handleFeedingTimeBegin);
     feedingTimer.SubscribeToTimeUp(handleFeedingTimeUp);
     buttonReference = GetComponent <Button>();
     buttonReference.interactable = !IsCurrentlyFeeding;
     foodSelector.Setup(dataController.AllFood, feedDogs);
 }