コード例 #1
0
 public void enterOnMatch(ButtonMatchController button)
 {
     turnOffBroadcast();
     StopCoroutine(recycleMatches());
     NetworkController.singleton.networkAddress = button.lanMatch.fromAddress;
     NetworkController.singleton.StartClient();
     Debug.Log("New player entered on match.");
 }
コード例 #2
0
 private void joinGame(ButtonMatchController button)
 {
     if (lanMode)
     {
         LanController.instance.enterOnMatch(button);
     }
     else
     {
         RemoteController.instance.enterOnMatch(button);
     }
 }
コード例 #3
0
ファイル: UIManager.cs プロジェクト: jhonattlima/Fire_Ice_Toe
 public void enterOnMatch(ButtonMatchController button)
 {
     if (GameManager.instance.lanMode)
     {
         lanDiscovery.enterOnMatch(button);
     }
     else
     {
         onlineDiscovery.enterOnMatch(button);
     }
 }
コード例 #4
0
 public void enterOnMatch(ButtonMatchController button)
 {   // Enter on the game
     StopAllCoroutines();
     if (isBroadcasting)
     {
         StopBroadcast();
     }
     isBroadcasting = false;
     NetworkController.singleton.networkAddress = button.lanMatch.fromAddress;
     NetworkController.singleton.StartClient();
     Debug.Log("Lan Discovery says: Entered on a match.");
 }
コード例 #5
0
 internal void enterOnMatch(ButtonMatchController button)
 {
     //throw new NotImplementedException();
 }
コード例 #6
0
 public void enterOnMatch(ButtonMatchController button)
 {
     Debug.Log("Online Discovery says: Entering on match.");
     stopListeningMatches();
     NetworkController.Match.JoinMatch(button.match.networkId, "", "", "", 0, 0, NetworkController.singleton.OnMatchJoined);
 }