title: Is there a funcion in C# to decrease the value of a int or double?
body: <p>i am trying to make a script for players health stamina hunger and thirst. I am trying to make hunger and thirst decrease over time by 0.1 over a time of 3 minutes but i don't know if there is a function to do so (also i did the stamina as a int beacuse i want to keep it round). I am new to programing so it might sound like a dumb question. Here's the code i am working with.</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class Player_Stats : MonoBehaviour {
  
      public double Health;
      public double Thirst;
      public double Hunger;
      public int Stamina;
  
      // Use this for initialization
      void Start () {
          Health = 100;
          Thirst = 100;
          Hunger = 100;
          Stamina = 100;
      }
  
      // Update is called once per frame
      void Update () {
  
      }
  }
  </code></pre>