what is wrong with this script?
static var elapsedTime: float = 0.0;
function Update() {
elapsedTime = Time.time ;
// Debug.Log("This much time has passed from the start of the opening of the scene: " + elapsedTime.ToString(“f2”) );
}
what is wrong with this script?
static var elapsedTime: float = 0.0;
function Update() {
elapsedTime = Time.time ;
// Debug.Log("This much time has passed from the start of the opening of the scene: " + elapsedTime.ToString(“f2”) );
}
There’s no point in the elapsedTime variable if all you’re going to do is set it to Time.time.
–Eric