Example #1
0
    private void Start()
    {
        thirstController = ThirstController.instance;

        maxValue = thirstController.maxThirst;
        value    = (int)thirstController.thirst;
    }
Example #2
0
    private void Drink()
    {
        string info = "You drunk a bottle of water. (+" + pointsOnDrink + ")";

        ScrollingInfoController.instance.AddText(info, isItem: false);
        thirstController         = ThirstController.instance;
        thirstController.thirst += pointsOnDrink;
    }