コード例 #1
0
ファイル: LobbyManager.cs プロジェクト: johnnyduong/CVS
 public void DisplayInputPassword(LobbyServerEntry entry, NetworkID networkID, LobbyManager lobbyManager)
 {
     enterPasswordPanel.Display("Enter Room Password", "OK", entry, networkID, lobbyManager);
     if (currentModal != null)
     {
         currentModal.SetActive(false);
     }
     currentModal = enterPasswordPanel.gameObject;
 }
コード例 #2
0
        public void Display(string info, string buttonInfo, LobbyServerEntry entry, NetworkID networkID, LobbyManager lobbyManager)
        {
            infoText.text   = info;
            buttonText.text = buttonInfo;
            singleButton.onClick.RemoveAllListeners();
            singleButton.onClick.AddListener(() => { entry.JoinMatch(networkID, lobbyManager, passwordText.text); });
            singleButton.onClick.AddListener(() => { gameObject.SetActive(false); });

            gameObject.SetActive(true);
        }