コード例 #1
0
    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);
    }
コード例 #2
0
 void Start()
 {
     sceneManagerMPScript = sceneManager.GetComponent <SceneManagerMP> ();
 }
コード例 #3
0
 void Start()
 {
     networkSceneManagerScript = sceneManager.GetComponent <SceneManagerMP> ();
     timeLeft = startingTime;
 }