Beispiel #1
0
        private void Start()
        {
            this.ObserveEveryValueChanged(_ => _._logs)
            .Subscribe(_ => _log.text = _);

            _connectBtn.onClick.AddListener(() => {
                Connect();
            });
            _infoBtn.onClick.AddListener(() => {
                TcpIpInfoView.Create();
            });
            _server = new Server();

            _server.AcceptedSendMsg = () => { return(this._logs); };
            _server.IpAddress       = TcpIpDefine.Instance.domain;
            _server.Port            = TcpIpDefine.Instance.port;
            _server.Start();
        }
Beispiel #2
0
        public static void Create()
        {
            TcpIpInfoView view = Resources.Load <TcpIpInfoView> ("TcpIpInfoView");

            Instantiate <TcpIpInfoView> (view);
        }