Problem with loading 2D animation through array

The problem is, it doesn’t do anything.
Here’s my code:

var run : Texture2D[];
var frame = 0;


function Update () {
frame += 1 * Time.deltaTime;
renderer.material.mainTexture = run[frame];
}

I know I’ll need more code to limit it to the size of the array, but I just want to know why it isn’t moving at all.
Any ideas? I’m kind of new to arrays.

You made “frame” an int, so it will never be more than 0 (unless you have a spectacularly low framerate).

–Eric

Thank you so much!