// Use this for initialization void Start() { OverFrames of = OverFrames.Get(); of.For(0, 20, 200, i => { Debug.Log(i); }, () => { Debug.Log("Ended"); }); }
void Start() { // Spread a For loop from x to y over n frames int x = 0; int y = 100000000; int n = 50; OverFrames.For(x, y, n, i => { float value = i * Random.value; Log(value); }, () => { } ); }