private void Start() { // Init the MainThreadManager MainThreadManager.Create(); mpMenu = FindObjectOfType <TestMultiplayerMenu>(); isHost = mpMenu.GetIsHost(); playerListEntryTemplateHeight = ((RectTransform)playerListEntryTemplate.transform).rect.height; RefreshPlayerList(); if (!isHost) { instructionsText.text = CLIENT_INSTRUCTIONS; } selectedLobbyText.text = LOBBY_TEXT + mpMenu.lobbyToJoin.Id.ToString(); }
private void Start() { mpMenu = GetComponentInParent <TestMultiplayerMenu>(); }