// Update is called once per frame void Update() { if (delayBeforeThirsty > 0) { delayBeforeThirsty -= Time.deltaTime; return; } happinessGauge.fillAmount = happiness; if (happiness >= 1) { mySlot.ClientLeave(); Debug.Log("+1 point ! yay"); } if (happiness <= 0) { mySlot.ClientLeave(); Debug.Log("OH NO :("); } }