Unity3D Tutorial Count Down Timer
Easter video series !
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL Turtorial Count Down Timer
1. Create New java and name it : Count Down Timer
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
var timer : float = 10.0;
function Update()
{
timer -= Time.deltaTime;
if(timer <= 0)
{
timer = 0;
//do some cool thing
}
}
// Tints all GUI drawed elements with yellow.
function OnGUI()
{
GUI.color = Color.yellow;
GUI.Box(new Rect(600, 20, 50, 20), "" + timer.ToString("0"));
}
---------------------------------------------------------------------------------
0 comments:
Post a Comment