//Start private void Awake() { //Network matches = new List <GameObject>(); networkManager = LNetworkLobbyManager.singleton.GetComponent <LNetworkLobbyManager>(); if (networkManager.matchMaker == null) { networkManager.StartMatchMaker(); } }
//Request Refresh public void requestRefresh() { if (networkManager.matchMaker == null) { networkManager.StartMatchMaker(); } if (networkManager.matchMaker != null) { networkManager.matchMaker.ListMatches(0, 20, "", true, 0, 0, RefreshMatches); } }