예제 #1
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();

            string match_name = "RS Match";

            if (matchNameInput.text != "")
            {
                match_name = matchNameInput.text;
            }
            lobbyManager.matchMaker.CreateMatch(
                match_name,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);

            //lobbyManager.spawn_dummy();
        }
예제 #2
0
        public void OnClickCreateMatchmakingGame()
        {
            int numMatches;

            if (lobbyManager.matches == null)
            {
                numMatches = 0;
            }
            else
            {
                numMatches = lobbyManager.matches.Count;
            }
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                //matchNameInput.text,
                "ROOM " + numMatches.ToString(),
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
예제 #3
0
        /// <summary>
        /// Create or Join Matchmaking Game
        /// </summary>
        public void OnClickCreateOrJoinGame()
        {
            lobbyManager.StartMatchMaker();
            //lobbyManager.matchMaker.
            //lobbyManager.matchMaker.get

            //lobbyManager.matchMaker.JoinMatch( networkID, "", lobbyManager.OnMatchJoined);
        }
예제 #4
0
        public void OnEnable()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.ListMatches(0, 4, "", true, 0, 0, OnMatchList);

            //joinButton.onClick.RemoveAllListeners();
            //joinButton.onClick.AddListener(() => { JoinMatch(); });
        }
예제 #5
0
        public void OnClickCreateMatchmakingGame()
        {
            if (roomSize != 0 && gameMode != 0)
            {
                lobbyManager.StartMatchMaker();
                lobbyManager.matchMaker.CreateMatch(matchNameInput.text, roomSize, true, "", "", "", gameMode, 0, lobbyManager.OnMatchCreate);
                lobbyManager.backDelegate   = lobbyManager.StopHost;
                lobbyManager._isMatchmaking = true;
                lobbyManager.DisplayIsConnecting();

                lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
            }
        }
예제 #6
0
        public void OnEnable()
        {
            lobbyManager.topPanel.ToggleVisibility(true);

            ipInput.onEndEdit.RemoveAllListeners();
            ipInput.onEndEdit.AddListener(onEndEditIP);

            matchNameInput.onEndEdit.RemoveAllListeners();
            matchNameInput.onEndEdit.AddListener(onEndEditGameName);



            lobbyManager.StartMatchMaker();
        }
예제 #7
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();
        }
예제 #8
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                lobbyManager.matchHost,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);
            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            //lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
        public void OnClickCreateMatchmakingGame()
        {
            Debug.Log("Size selected" + roomSizeDropDown.value);
            switch (roomSizeDropDown.value)
            {
            case 0:
                roomSize = 8;
                break;

            case 1:
                roomSize = 10;
                break;

            case 2:
                roomSize = 12;
                break;

            case 3:
                roomSize = 14;
                break;
            }

            if (matchNameInput.text.Equals(""))
            {
                AndroidNativeFunctions.ShowToast("Please select Room Name");
                print("matchNameInput + faragh");
            }
            else
            {
                MenuFindAGame.SetActive(false);
                Debug.Log("CLICKED" + matchNameInput.text);
                Debug.Log("CLICKED" + roomSize);
                lobbyManager.StartMatchMaker();
                lobbyManager.matchMaker.CreateMatch(
                    matchNameInput.text,
                    (uint)roomSize,
                    true,
                    "", "", "", 0, 0,
                    lobbyManager.OnMatchCreate);

                lobbyManager.backDelegate   = lobbyManager.StopHost;
                lobbyManager._isMatchmaking = true;
                lobbyManager.DisplayIsConnecting();

                lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
                //NetManager.roomName = matchNameInput.text;
            }
        }
예제 #10
0
        void OnEnable()
        {
            lobbyManager.StartMatchMaker();

            playerName.text = SaveSystem.player.name;
            statistics.text = "K: " + SaveSystem.player.k + " / " +
                              "D: " + SaveSystem.player.d + " / " +
                              "HI-SCORE: " + SaveSystem.player.hiscore + " / " +
                              "TRAINING SCORE: " + SaveSystem.player.rank;
            playerColor.color = SaveSystem.player.GetColor();

            //Define a pagina atual como 0
            currentPage = 0;

            Debug.Log("oi");

            //Destroi as salas dentro da lista de servidores
            foreach (Transform t in serverListRect)
            {
                Destroy(t.gameObject);
            }

            //Desativa a mensagem negativa
            message.text = "SEARCHING FOR GAMES...";

//			//Inicia a atualizacao da lista
//            RequestPage(0);
        }
예제 #11
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text.Length >= 1 ? matchNameInput.text : Constants.DefaultRoom,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost, lobbyManager.roomInfo.text);
        }
예제 #12
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "",
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
            ClickManager.instance.EnableLevelButton();
        }
예제 #13
0
        public void OnClickCreateMatchmakingGame()
        {
            Debug.Log("Host game clicked!");
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
예제 #14
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
            // AFTER: lobbyManager.OnStartHost() to change scene
        }
예제 #15
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text != "" ? matchNameInput.text : "Server " + SystemInfo.deviceName,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
            m_soundManager.PlaySound(SoundManager.AudioClipList.AC_clickBtnMenu);
        }
예제 #16
0
        public void OnClickCreateMatchmakingGame()
        {
            SoundManager.instance.PlaySound(5, 1.0f, AudioType.SFX);

            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
예제 #17
0
        public void OnClickCreateMatchmakingGame()
        {
            var matchName = String.Format(@"{0}/{1}", GameController.Instance.Scene, matchNameInput.text);

            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchName,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
예제 #18
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.minPlayers = (playerNumberDropdown.value + 1);
            //lobbyManager.maxPlayers = (playerNumberDropdown.value + 1);

            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
예제 #19
0
        public void JoinMatch(NetworkID networkID, LobbyManager lobbyManager)
        {
            lobbyManager.StartMatchMaker();
            Debug.Log("Me uno a este ID MATCH!!!: " + networkID);

            lobbyManager.matchMaker.JoinMatch(networkID, "", "", "", 0, 0, lobbyManager.OnMatchJoined);
            lobbyManager.backDelegate   = lobbyManager.StopClientClbk;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();
        }
예제 #20
0
        public void OnClickCreateMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);


            //SteamMatchmaking.CreateLobby(ELobbyType.k_ELobbyTypePublic, lobbyManager.maxPlayers);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            //lobbyManager.ChangeTo(lobbyPanel);
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
예제 #21
0
        public void OnClickCreateMatchmakingGame()
        {
            string matchName = "";

            lobbyManager.StartMatchMaker();
            if (CampainButton.IsInteractable())
            {
                matchName = matchNameInput.text + " Endless";
            }
            else
            {
                matchName = matchNameInput.text + " Campaign";
            }

            lobbyManager.matchMaker.CreateMatch(matchName, (uint)lobbyManager.maxPlayers, true, matchPasswordInput.text, "", "", 0, 0, lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();
        }
예제 #22
0
        public void OnClickCreateMatchmakingGame()
        {
            _gDefense_Panel.SetActive(true);
            Invoke("Defense_Panel_Off", 2.0f);
            _sRoom_Name = "";
            MatchCollection matches = Regex.Matches(matchNameInput.text, @"[^\W_]+", RegexOptions.IgnoreCase);

            foreach (Match match in matches)
            {
                _sRoom_Name += match.Value;
            }
            if (_sRoom_Name != "")
            {
                //_tName.text = Name_Input.text;
                lobbyManager.StartMatchMaker();
                lobbyManager.matchMaker.CreateMatch(
                    _sRoom_Name,
                    (uint)lobbyManager.maxPlayers,
                    true,
                    "", "", "", 0, 0,
                    lobbyManager.OnMatchCreate);

                lobbyManager.backDelegate   = lobbyManager.StopHost;
                lobbyManager._isMatchmaking = true;
                lobbyManager.DisplayIsConnecting();
                GameObject.Find("123").GetComponent <RectTransform>().position = new Vector3(0, -1000, 0);
                _gGame_Name.SetActive(false);
                _gMenu_Name.SetActive(false);
                _gSer_Name.GetComponent <Text>().text = _sRoom_Name;
                _gSer_Name.SetActive(true);
                _gOpen_Room.SetActive(false);
                _gRoom_Panel.SetActive(true);
                _gRoom_Game_Name.SetActive(true);
                lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
            }
            else
            {
                _gWarning_RoomName.SetActive(true);
                Invoke("Close_Warning", 3.0f);
            }
        }
예제 #23
0
 void JoinMatch(NetworkID networkID, LobbyManager lobbyManager)
 {
     Debug.Log("JoinMatch triggered " + networkID);
     if (!lobbyManager._isMatchmaking)
     {
         Debug.Log("not matchmaking", lobbyManager);
         lobbyManager.StartMatchMaker();
     }
     lobbyManager.matchMaker.JoinMatch(networkID, "", "", "", 0, 0, lobbyManager.OnMatchJoined);
     lobbyManager.backDelegate   = lobbyManager.StopClientClbk;
     lobbyManager._isMatchmaking = true;
     lobbyManager.DisplayIsConnecting();
 }
        public void RequestPage(int page)
        {
            previousPage = currentPage;
            currentPage  = page;

            if (lobbyManager.matchMaker == null)
            {
                lobbyManager.StartMatchMaker();
                lobbyManager.backDelegate = lobbyManager.SimpleBackClbk;
            }

            lobbyManager.matchMaker.ListMatches(page, 6, "", true, 0, 0, OnGUIMatchList);
        }
예제 #25
0
        public void StartMatchmakingGame()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            LobbyManager.s_Singleton.ShowConnectingModal(false);
            LobbyManager.s_Singleton.state = GameState.Connecting;
        }
예제 #26
0
        public void OnClickCreateMatchmakingGame()
        {
            roomName             = "Room " + Random.Range(100, 1000).ToString();
            RoomNameDisplay.text = roomName;

            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                roomName,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);

            SendImageButton.GetComponentInChildren <Text> ().text = "Send\nImage";

            loadImage(v.imageData, v.width, v.height);
        }
예제 #27
0
        public void OnClickCreateMatchmakingGame()
        {
            string pass = "";

            if (matchPasswordInput != null)
            {
                pass = matchPasswordInput.text;
            }

            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                pass, "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.DisplayIsConnecting();

            lobbyManager.SetServerInfo("Matchmaker Host", lobbyManager.matchHost);
        }
        void bSubmitOnClick()
        {
            lobbyManager.StartMatchMaker();
            lobbyManager.matchMaker.CreateMatch(
                matchNameInput.text,
                (uint)lobbyManager.maxPlayers,
                true,
                "", "", "", 0, 0,
                lobbyManager.OnMatchCreate);

            lobbyManager.backDelegate   = lobbyManager.StopHost;
            lobbyManager._isMatchmaking = true;
            lobbyManager.lobbyPanel.GetComponent <LobbyPlayerList> ().ChangeTitle(matchNameInput.text);
            lobbyManager.DisplayIsConnecting();
        }
예제 #29
0
 public void ReadyToSearch()
 {
     Debug.Log(PetWarrior.WarriorLife);
     Debug.Log(PetWarrior.HasWarrior);
     if (PetWarrior.WarriorLife == 0)
     {
         SetWarriorPanel.SetActive(true);
         return;
     }
     SerachPanel.SetActive(true);
     StartCoroutine(AssignTips());
     //		ChoseFightPanel.SetActive(false);
     lobbyManager.StartMatchMaker();
     SearchTime = Time.time;
     Debug.Log("Searching");
     SearchGame();
 }
예제 #30
0
 public void OnClickOpenServerList()
 {
     lobbyManager.StartMatchMaker();
     lobbyManager.backDelegate = lobbyManager.SimpleBackClbk;
     lobbyManager.ChangeTo(lobbyServerList);
 }