Example #1
0
    // Use this for initialization
    void Start()
    {
        PlayerData = (PlayerVitals) GameObject.Find("First Person Controller").GetComponent ("PlayerVitals");

        thirstBar = new HUDBar(thirstMinColor, thirstMaxColor, PlayerData.GetThirstRatio(), thirstBox);
        hungerBar = new HUDBar(hungerMinColor, hungerMaxColor, PlayerData.GetHealthRatio(), hungerBox);

        //InitializeTemperature();
        thirstBar.Initialize();
        hungerBar.Initialize();
    }