September 2010
Beginner
384 pages
8h 49m
English
Let's rough in a few empty functions and three variables that we'll need to make the clock work.
var isPaused : boolean = false;
var startTime : float; //(in seconds)
var timeRemaining : float; //(in seconds)
function Start()
{
}
function Update() {
if (!isPaused)
{
// make sure the timer is not paused
DoCountdown();
}
}
function DoCountdown() {
}
function PauseClock()
{
isPaused = true;
}
function UnpauseClock()
{
isPaused = false;
}
function ShowTime()
{
}
function TimeIsUp()
{
}
Here, we've created a list of functions that we'll probably need to get our clock working. The functions are empty, ...
Read now
Unlock full access