hi,
i have a small problem i created a list in a list with a customized class.
like this:
#pragma strict
import System.Collections.Generic;
class MyWords {
var word : String;
var texture1: Texture2D;
var texture2: Texture2D;
var texture3: Texture2D;
var texture4: Texture2D;
}
var YourWords = new List.<MyWords>();
function Start () {
}
function Update () {
//I have to assign the "texture1" to the "image1" GameObject, but how?
GameObject.Find("image1").gameObject.renderer.material.mainTexture = ????????;
}
hope you can help me!
Thanks