void Start() { // setup shared image texture material = gameObject.GetComponent<Renderer>().material; shared_image = gameObject.GetComponent<SharedImageDownloader>(); material.mainTexture = shared_image.sharedTexture; }
void Start() { // setup shared image texture material = gameObject.GetComponent <Renderer>().material; shared_image = gameObject.GetComponent <SharedImageDownloader>(); material.mainTexture = shared_image.sharedTexture; }