Beispiel #1
0
 void SetWhenCanGatherFood()
 {
     timeWhenCanGatherFood         = timeManager.GetTime();
     timeWhenCanGatherFood.day    += delayBeforeGatherFoodDays;
     timeWhenCanGatherFood.hour   += delayBeforeGatherFoodHours;
     timeWhenCanGatherFood.minute += delayBeforeGatherFoodMinutes;
 }
Beispiel #2
0
 void SetWhenCanGatherWater()
 {
     timeWhenCanGatherWater         = timeManager.GetTime();
     timeWhenCanGatherWater.day    += delayBeforeGatherWaterDays;
     timeWhenCanGatherWater.hour   += delayBeforeGatherWaterHours;
     timeWhenCanGatherWater.minute += delayBeforeGatherWaterMinutes;
 }
Beispiel #3
0
    void SetStoryForDay()
    {
        TimeManager.Timestamp currentTime = timeManager.GetTime();

        Day_Story_Element currentDayStory = dayStories[currentTime.day.ToString()].story;

        text.text = currentDayStory.story;
    }
Beispiel #4
0
    // 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);
    }