예제 #1
0
    //if you click Server Button, it would be run.
    private void onServerButton()
    {
        Debug.Log("Clicked Server Button");
        TextBoxUIFlag = true;
        CoSpatial.CreateServer();
        IPAddressOutput.Text = CoSpatial.Network.IP;

        CoSpatial.Network.RegisterHandler(CoSpatialProtocol.Type.Connected, (netMsg) => {
            Debug.Log("Client Connected And Remove IP Address Box");
            this.TextBoxUIFlag = false;
        });
    }
예제 #2
0
 //if you click Client Button, it would be run.
 private void onClientButton()
 {
     Debug.Log("Clicked Client Button");
     CoSpatial.CreateClient(IPAddressInput.Text);
 }