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 }; }
private void Awake() { this.minSize = new Vector2(420, 740); socketEndpointOptions = CreateInstance <SocketEndpointOptions>(); }