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; }
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); }