protected void Connect() { _connectStream = UniRxUtils.StartCoroutine(ConnectEnumerator, () => { Debug.Log($"Success tcp connect : IpAddress = {_host} Port = {_port}"); _connectStream = null; }); }
protected void StartServer() { _startServerStream = UniRxUtils.StartCoroutine(StartServerEnumerator, () => { Debug.Log($"Success start tcp server : IpAddress = {_host} Port = {_port}"); _startServerStream = null; _updateListenPacketStream = Observable.EveryUpdate().Subscribe(_ => UpdateListenPacket()); }); }