Hi i have this script that will turn a directional light around to emulate a sun that is all working fine but i want to display the time on a gui label that i can do aswell the thing i cant do is to stop it from being a decimal when i run it it works fine, i want it to be a whole number like 1 instead of 1.11032046520 please tell me how i can fix this.
My Code-
//this is the cut version because the real one is very long
//this code includes the parts of the .cs i am having trouble with
// first the int declare which is the game time
int currentCycleTime (int);
// now for the OnGUI()
Void OnGUI()
{
//show the current time as a gui text
GUI.Label(new Rect(10,10,100,20), "Time:"+ currentCycleTime );
print (currentCycleTime);
}