my problem in (TIme.deltatime)

I have a problem at the Time.deltatime
Code

#pragma strict
var hor : int = 0 ;
var min : float = 0;
var day : int = 0 ;

function Start () {

}

function Update () {
min = min + 1 * Time.deltatime ;
if (min >= 60)
{
min = 0;
hor ++ ;
}
if (hor >= 24)
{
hor = 0 ;
day ++ ;
}


}

I need a solution :eyes:

Unity 3d Tell me ‘deltatime’ is not a member of ‘Time’ . :frowning:

The problem in

min = min + 1 * Time.deltatime ;

Capitalize that T in deltaTime.

How

1 Like

Keep shift button down while pressing t button. You can also use capslock :stuck_out_tongue:

1 Like

:slight_smile:
i know

I did what she told me it but the problem persists :face_with_spiral_eyes:

Give back to me with writing code debugging .

min += Time.deltaTime;

JaVaScriPt iS cAseSenSitIVe :stuck_out_tongue: