Is something like this good? You're trying to assign a sprite based on index, right?
using UnityEngine;
using System.Collections; public class STMSetQuadData : MonoBehaviour
{
public STMQuadData quadData; public Texture[] textureArray; public void Assign(int index)
{
quadData.texture = textureArray[index];
}
}