//Increase rating if still in-game public override void OnClientDisconnect(NetworkConnection conn) { if (isInGame) { disconnectPanel.display(); StartCoroutine(uploadMatchData()); } base.OnClientDisconnect(conn); StopClientClbk(); }
// ----------------- Find match ------------------ public void findMatch() { //Check if there are existed matches //If yes, join it else create new match infoPanel.display(); StartMatchMaker(); matchMaker.ListMatches(0, 1, "", true, 0, 0, OnMatchList); }