コード例 #1
0
        private void SetUp()
        {
            setUpButton.interactable       = false;
            hangUpButton.interactable      = true;
            connectionIdInput.interactable = false;

            singleConnection.CreateConnection(connectionId);
        }
コード例 #2
0
        void CreateConnection()
        {
            _connectionId = System.Guid.NewGuid().ToString("N");
            connection.CreateConnection(_connectionId);

            startButton.gameObject.SetActive(false);
            stopButton.gameObject.SetActive(true);
        }
コード例 #3
0
        private void OnStart()
        {
            if (string.IsNullOrEmpty(connectionId))
            {
                connectionId           = System.Guid.NewGuid().ToString("N");
                connectionIdInput.text = connectionId;
            }
            connectionIdInput.interactable = false;

            connection.CreateConnection(connectionId);
            startButton.gameObject.SetActive(false);
            stopButton.gameObject.SetActive(true);
        }
コード例 #4
0
        void SendOffer()
        {
            var connectionId = System.Guid.NewGuid().ToString("N");

            connection.CreateConnection(connectionId);
        }