update script

I would like to know if there is a script that makes a message pop up if I post an update for a game. if so what is the script and how do I post the update to the game?

What you want to do is when you load up your game, using the WWW class, you check if you’re running the most up to date version of the game. This could be as easy as throwing a .txt file with the most recent version number in your public folder on dropbox, getting the path and checking the string the WWW will return.

private static var thisVersionNumber : int;

function Start( )
    var url : String = "http://dl.dropbox.com/u/2325652/My_VersionNumber.txt";
    var www : WWW = new WWW (url);	 
    yield www;
    var latestNumberString : int = Convert.ToSingle( www.text );
    if( latestNumber != thisVersionNumber )
        //Uh oh, you're running an old version


What you can do after having done this check is either prompt the user to download a new version of the application, or look into assetbundles.