// Use this for initialization void Start() { GetComponent <Image> ().sprite = item.GetComponent <Item> ().getImage(); }