public void connectToMatch() { manager = sceneNetworkManager.GetComponent <NetworkManager> (); networkSceneManagerScript = sceneManager.GetComponent <SceneManagerMP> (); userName = Random.Range(111111, 999999).ToString(); manager.StartMatchMaker(); //This function calls OnMatchList when it ends manager.matchMaker.ListMatches(0, 20, "", false, 0, 0, OnMatchList); }
void Start() { sceneManagerMPScript = sceneManager.GetComponent <SceneManagerMP> (); }
void Start() { networkSceneManagerScript = sceneManager.GetComponent <SceneManagerMP> (); timeLeft = startingTime; }