예제 #1
0
    /// <summary>
    /// Instantiates a client view and begins polling for frames to populate it.
    /// </summary>
    public void StartClientPollFrames()
    {
        parsecFrameDecoder = new ParsecFrameDecoder();
        parsecGuestView    = Instantiate(parsecGuestViewPrefab);

        StartCoroutine(ClientPollFrame());
    }
예제 #2
0
    private void Awake()
    {
        hostButton.onClick.AddListener(Host);
        connectButton.onClick.AddListener(Connect);

        parsecGuestView.gameObject.SetActive(false);
        scene.SetActive(false);
        tryCreateTextureToggle.gameObject.SetActive(false);

        decoder = new ParsecFrameDecoder();
    }