/// <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()); }
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(); }