void SetWhenCanGatherFood() { timeWhenCanGatherFood = timeManager.GetTime(); timeWhenCanGatherFood.day += delayBeforeGatherFoodDays; timeWhenCanGatherFood.hour += delayBeforeGatherFoodHours; timeWhenCanGatherFood.minute += delayBeforeGatherFoodMinutes; }
void SetWhenCanGatherWater() { timeWhenCanGatherWater = timeManager.GetTime(); timeWhenCanGatherWater.day += delayBeforeGatherWaterDays; timeWhenCanGatherWater.hour += delayBeforeGatherWaterHours; timeWhenCanGatherWater.minute += delayBeforeGatherWaterMinutes; }
void SetStoryForDay() { TimeManager.Timestamp currentTime = timeManager.GetTime(); Day_Story_Element currentDayStory = dayStories[currentTime.day.ToString()].story; text.text = currentDayStory.story; }
// Water & Food ----------------------------- bool ReadyToSpawnWater() { TimeManager.Timestamp currentTime = timeManager.GetTime(); if (currentTime.day > timeWhenCanGatherWater.day) { return(true); } else if (currentTime.day == timeWhenCanGatherWater.day && currentTime.hour > timeWhenCanGatherWater.hour) { return(true); } else if (currentTime.day == timeWhenCanGatherWater.day && currentTime.hour == timeWhenCanGatherWater.hour && currentTime.minute >= timeWhenCanGatherWater.minute) { return(true); } return(false); }