private void OnEnable() { _LobbyMSingleton = this; DontDestroyOnLoad(gameObject); mRT_CurrentPanel = mRT_MainMenuPanel; //print("LobbyManager: " + mRT_CurrentPanel.name); }
public void Populate(MatchInfoSnapshot vMatch, JC_LobbyManager vLobbyManager, Color vColour) { mTX_ServerInfoText.text = vMatch.name; mTX_PlayersInRoom.text = vMatch.currentSize.ToString() + " / " + vMatch.maxSize.ToString(); mBT_JoinButton.onClick.RemoveAllListeners(); mBT_JoinButton.onClick.AddListener(() => JoinMatch(vMatch.networkId, vLobbyManager)); }
private void OnEnable() { if (mLM_LobbyManager == null) { mLM_LobbyManager = FindObjectOfType <JC_LobbyManager>(); } mIN_CurrentPage = 0; mIN_PreviousPage = 0; foreach (Transform vTranform in mRT_ServerListPanel) { Destroy(vTranform.gameObject); } RequestPage(0); }
// Use this for initialization private void OnEnable() { mLM_LobbyManager = FindObjectOfType <JC_LobbyManager>(); }
public void JoinMatch(NetworkID vNetworkID, JC_LobbyManager vLobbyManager) { vLobbyManager.matchMaker.JoinMatch(vNetworkID, "", "", "", 0, 0, vLobbyManager.OnMatchJoined); }