Hi!
I have a simple question.
In my script I have something like:
var Food = 200;
How can I lower the ,food" variable by 10 every 5 minutes or so?
Thanks in advance,
–Robert–
Hi!
I have a simple question.
In my script I have something like:
var Food = 200;
How can I lower the ,food" variable by 10 every 5 minutes or so?
Thanks in advance,
–Robert–
http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.InvokeRepeating.html
just deduct the amount you wan’t at a certain time interval.