Quantcast
Channel: Latest Questions by eeveelution8
Viewing all articles
Browse latest Browse all 100

Need help with 24 Hour timing script.

$
0
0
Im not asking anyone to write a code for me before anyone thinks this, I already have a timing script that counts the hours and resets at hour 23 to 0. Im asking for what the code snippets for changing the scenes ambient lighting and skybox setting, so I can insert them at appropriate times for the times of the day. I dont know them var Hour = 0; function Start () { InvokeRepeating("time", 0, 60); } function time () { Hour = Hour + 1; } function Update () { if(Hour > 23){ Hour = 0; } guiText.text = ("Hour:"+Hour); } this is the code for anyone wondering.

Viewing all articles
Browse latest Browse all 100

Trending Articles