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();
    }
예제 #2
0
 private void Start()
 {
     mpMenu = GetComponentInParent <TestMultiplayerMenu>();
 }