alvivar/TeaTimer — pull request #3 by tzamora (2014-12-30 04:04:33+00:00)
Title: Added Append loop method (A function to do things during a certain amoun...

(A function to do things during a certain amount of time updated by frame)

// this routine will do each action in their own update.
this.ttAppendLoop (1f, delegate(LoopHandler loop) {
renderer.material.color = Color.Lerp (Color.magenta, Color.green, loop.t);
}).ttAppendLoop (2f, delegate(LoopHandler loop) {
transform.Rotate (new Vector3 (0f, -1f, 0f) * 500f * Time.deltaTime);
});