Skip to content

Patch.CheckForUpdates

Wesley Haws edited this page Nov 2, 2016 · 1 revision

#CheckForUpdates

public IEnumerator CheckForUpdates()

##Parameters

none.

##Description

This will scan for your local "version" file and compare it with a remote "version" file. If the remove version file has a larger number then it assigns the "updateAvailable" variable to true;

This requires that the "remoteVersionURL" variable is not null.

##Example

using GameDevRepo;

void Start() {
    PatchSystem patch = new PatchSystem();
    StartCoroutine(patch.CheckForUpdates());
}
Clone this wiki locally