public GameObject Obtain(int index) { for (int i = 0; i < this.images.Count; i++) { ImageIndex imageIndex = this.images[i].GetComponent <ImageIndex>(); if (imageIndex != null && imageIndex.index == index) { return(this.images[i].gameObject); } } return(null); }
public void Initialize() { this.index = this.GetComponent<ImageIndex>(); }
public void Initialize() { this.index = this.GetComponent <ImageIndex>(); }