Exemplo n.º 1
0
    void Start()
    {
        if (Default != null)
        {
            Destroy(gameObject);
        }

        Default = this;
        DontDestroyOnLoad(gameObject);

        ClientProperties properties = ClientProperties.Default;
        ServerInfo       serverInfo = ServerInfo.DefaultLocal;

        networkClient = new LiNGSClient(properties, serverInfo, this);
        networkClient.Connect();
    }
Exemplo n.º 2
0
 public void Connect(ClientProperties clientProperties, ServerInfo serverInfo)
 {
     lingsClient = new LiNGSClient(clientProperties, serverInfo, this);
     lingsClient.Connect();
 }