コード例 #1
0
        public AIClient(SocketEndpointOptions socketEndpointOptions)
        {
            this.socketEndpointOptions = socketEndpointOptions;

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
            ServicePointManager.ServerCertificateValidationCallback = ServerCertificateValidator.ValidateCertificate;

            JsonConvert.DefaultSettings = () => new JsonSerializerSettings
            {
                Formatting            = Newtonsoft.Json.Formatting.Indented,
                ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
            };
        }
コード例 #2
0
 private void Awake()
 {
     this.minSize          = new Vector2(420, 740);
     socketEndpointOptions = CreateInstance <SocketEndpointOptions>();
 }