In my game, a TV screen is linked to a url that updates an image every 3 minutes. How would i make this code:
// Get the latest webcam shot of Mt. Fuji
var url = "http://www.mfi.or.jp/livefuji2/lcam.jpg";
function Start() {
// Start a download of the given URL
var www : WWW = new WWW (url);
// Wait for download to complete
yield www;
// assign texture
renderer.material.mainTexture = www.texture;
}
access that site and download that image every 3 minutes? Becuase if I just use Start then it only updates when you start the game, but Update is too many updating times for an image that only changes every 3 minutes.