コード例 #1
0
    async void Start()
    {
        try {
            var jsonClient = new JsonRestClient(this);
            var url        = isLocal ? "http://*****:*****@" + response.IpAddress + " on:" + response.Port);
            client.StartNetworked(response.Port, response.IpAddress, response.PlayerSessionId, this, settings);
        } catch (Exception e) {
            Debug.LogError("failed to start");
            Debug.LogError(e);
        }
    }
コード例 #2
0
 public void StartCommunications(int port)
 {
     client.StartNetworked(port, "127.0.0.1", guid, this, settings);
 }