ok so this is kind of hard to explain but what i need help with is making the players life(which is set at 100) go down by 1 point ever minute.
var life = 100;
function OnGUI ()
{
GUI.Label(Rect(0,300,80,30),"life: " + life);
}
function Update()
{
var Ctime = Time.deltaTime * 60;
}
thats the code i have got so far all i really need is to know how to make the life var go down by 1 ever 1 minute.
any help would be much appreciated.
and just one more thing if anyone knows any tutorials on unity script then could you please link them i am trying to learn how to script.