private void CheckClientVersion(int cnnId, int channelId, int recHostId, Net_CheckVersion msg) { // send a message to the client with the current version Net_CheckVersion response = new Net_CheckVersion(); response.version = VERSION; SendClient(recHostId, cnnId, channelId, response); }
public void recieveMessage(Net_CheckVersion msg) { string serverVersion = msg.version; string clientVersion = PlayerPrefs.GetString(PlayerPrefEnum.clientVersion); if (clientVersion != serverVersion) { //CardIdChecker.runAsStatic(); // then remove ui blocker } }