Exemplo n.º 1
0
 public void OnClickHost()
 {
     SoundManager.instance.PlaySound(5, 1.0f, AudioType.SFX);
     DataManager.instance.localPlayerName = nameInput.text;
     lobbyManager.StartHost();
     DataManager.instance.gameState = DataManager.GameState.charSelection;
 }
 public void OnClickHost()
 {
     if (achivementController.GetPlayer() != null)
     {
         lobbyManager.StartHost();
     }
 }
Exemplo n.º 3
0
        public void OnClickHost()
        {
            GetComponentInParent <NetworkDiscovery>().Initialize();

            lobbyManager.StartHost();

            GetComponentInParent <NetworkDiscovery>().StartAsServer();
        }
Exemplo n.º 4
0
 public void OnClickHost()
 {
     _callback = () =>
     {
         NetServerSingleton.Instance.StartServer();
         _lobbyManager.networkPort = NetServer.DefaultPort;
         _lobbyManager.StartHost();
     };
     _gameTypeSelect.gameObject.SetActive(true);
 }
Exemplo n.º 5
0
 public void OnClickHost()
 {
     if (!MainMenuManager.isMultiplayerButtonClicked)
     {
         return;
     }
     MainMenuManager.isPlayerConnected = true;
     otherCanvasAnimator.Play("Host_Join");
     lobbyManager.StartHost();
 }
        public void OnClickStartConnection()
        {
            if (typeClient.isOn)
            {
                lobbyManager.StartHost();
            }

            else
            {
                OnClickJoin();
            }
        }
Exemplo n.º 7
0
 public void OnClickHost()
 {
     /*
      * if (Time.time < lobbyManager.startTime + 90f)
      * {
      *  lobbyManager.infoPanel.Display("Please wait while loading.\n"
      + (int)(lobbyManager.startTime + 90f - Time.time) + " seconds left.", "Close", null);
      +  return;
      + }
      */
     lobbyManager.minPlayers        = 1;
     lobbyManager.maxPlayers        = 1;
     lobbyManager.prematchCountdown = 3f;
     lobbyManager.networkAddress    = "localhost"; //ipInput.text;
     lobbyManager.StartHost();
 }
Exemplo n.º 8
0
 public void Host()
 {
     try {
         //End point using the server ip and port number
         IPEndPoint serverAddress = new IPEndPoint(SERVER_IP, PORT_NO2);
         // TCP spcket type used for the connection
         Socket client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
         //connect to the AWS server
         client.Connect(serverAddress);
         //send the details to AWS
         send(client);
         //start a lobby as you will be the host of the new game
         lobbyManager.StartHost();
     }
     catch (Exception) {
         //if the connection fails, simply used for debugging
         Debug.Log("Failed to Connect to Server");
     }
 }
Exemplo n.º 9
0
 public void OnClickHost()
 {
     lobbyManager.StartHost();
     this.transform.parent.Find("TopPanel").Find("StatusInfo").GetComponent <Text> ().text = Network.player.ipAddress;
 }
Exemplo n.º 10
0
        public void OnClickHost()
        {
            Audio.Play("Click");

            lobbyManager.StartHost();
        }
Exemplo n.º 11
0
 public void OnClickSoloMatch()
 {
     lobbyManager.topPanel.ToggleVisibility(true);
     lobbyManager.StartHost();
     lobbyManager.OnStartSolo();
 }
Exemplo n.º 12
0
 public void OnClickHost()
 {
     lobbyManager.StartHost();
     ClickManager.instance.enableLevel = true;
 }
Exemplo n.º 13
0
 public void OnClickHost()
 {
     //ChooseScene.SetActive (true);
     lobbyManager.StartHost();
 }
Exemplo n.º 14
0
 public void OnClickHost()
 {
     print("host");
     lobbyManager.StartHost();
 }
Exemplo n.º 15
0
 public void OnClickHost()
 {
     lobbyManager.StartHost();
     blanksSelecter.SetActive(true);
 }
Exemplo n.º 16
0
 public void OnClickHost()
 {
     lobbyManager.StartHost();
     m_soundManager.PlaySound(SoundManager.AudioClipList.AC_clickBtnMenu);
 }
 public void OnClickHost()
 {
     FunDebug.Log("OnClickHost()");
     lobbyManager.StartHost();
 }
Exemplo n.º 18
0
 public void OnClickHost()
 {
     m_gameInited = true;
     lobbyManager.StartHost();
     DisableMenuScene();
 }
Exemplo n.º 19
0
 public void OnClickHost()
 {
     lobbyManager.StartHost();
 }
Exemplo n.º 20
0
 public void OnClickHost()
 {
     lobbyManager.StartHost();
     shareSettings();
 }
Exemplo n.º 21
0
 public void OnClickHost()
 {
     lobbyManager.StartHost();
     lobbyManager.SetServerInfo("Hosting", lobbyManager.networkAddress);
 }
Exemplo n.º 22
0
 public void OnClickHost()
 {
     IP = Network.player.ipAddress;
     Debug.Log("Host" + IP);
     lobbyManager.StartHost();
 }