コード例 #1
0
 void Start()
 {
     // setup shared image texture
     material = gameObject.GetComponent<Renderer>().material;
     shared_image = gameObject.GetComponent<SharedImageDownloader>();
     material.mainTexture = shared_image.sharedTexture;
 }
コード例 #2
0
 void Start()
 {
     // setup shared image texture
     material             = gameObject.GetComponent <Renderer>().material;
     shared_image         = gameObject.GetComponent <SharedImageDownloader>();
     material.mainTexture = shared_image.sharedTexture;
 }