Exemplo n.º 1
0
        public void Connect(string addr, int port)
        {
            if (session != null)
            {
                session.Close();
                session = null;
            }

            session         = new UDPSession();
            session.onError = this.onError;

            session.Connect(addr, port);
            //Debug.Log($"do conn{addr}:{port}");
        }