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.