Пример #1
0
    // Unity Callbacks -----------------------------
    void Awake()
    {
        gameStateManager = GameObject.Find("GameState_Manager").GetComponent <GameState_Manager>();
        timeManager      = GameObject.Find("Time_Manager").GetComponent <Time_Manager>();

        timeWhenDeadToThirst = timeManager.AddHoursToTimestamp(timeManager.GetTime(), startHydrationHours);
        timeWhenDeadToHunger = timeManager.AddHoursToTimestamp(timeManager.GetTime(), startFoodHours);
    }
Пример #2
0
 public void Hydrate(uint hours)
 {
     timeWhenDeadToThirst = timeManager.AddHoursToTimestamp(timeWhenDeadToThirst, hours);
 }