public void Populate(MatchInfoSnapshot match, LobbyManager lobbyManager, Color c)
        {
            serverInfoText.text = match.name;

            slotInfo.text = match.currentSize.ToString() + "/" + match.maxSize.ToString();;

            NetworkID networkID = match.networkId;

            joinButton.onClick.RemoveAllListeners();
            joinButton.onClick.AddListener(() => { JoinMatch(networkID, lobbyManager); });

            GetComponent <Image>().color = c;
        }
Beispiel #2
0
        void Start()
        {
            s_Singleton  = this;
            _lobbyHooks  = GetComponent <LobbyHook>();
            currentPanel = mainMenuPanel;

            backButton.gameObject.SetActive(false);
            GetComponent <Canvas>().enabled = true;

            DontDestroyOnLoad(gameObject);

            SetServerInfo("Offline", "None");
        }
        public void Populate(LanConnectionInfo match, LobbyManager lobbyManager, Color c)
        {
            serverInfoText.text = match.name;

            slotInfo.text = match.currentSize.ToString() + "/" + match.maxSize.ToString();;

            lanMatch          = match;
            this.lobbyManager = lobbyManager;

            joinButton.onClick.RemoveAllListeners();
            joinButton.onClick.AddListener(JoinMatch);

            GetComponent <Image>().color = c;
        }