Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        ZLog.D(this, "start socket order {0}", this.ZOrder);

        _component._btn1.transform.Find("Text").GetComponent <Text>().text = "connect";
        SetClickEventOnce(_component._btn1, ClickBtnConnet, new object[] { "cnt" });


        _component._btn2.transform.Find("Text").GetComponent <Text>().text = "disconnect";
        SetClickEventOnce(_component._btn2, ClickDisconnet, new object[] { "dis" });

        _component._btn3.transform.Find("Text").GetComponent <Text>().text = "ping";
        SetClickEventOnce(_component._btn3, ClickBtnSendPing, new object[] { "ping" });

        _component._text.text = "init";

        _ws = new ZbyWebSocket(this, this);
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     ZLog.D(this, "in start url {0}", _url);
     SetClickEventOnce(_component.btnSend, ClickCall, new object[] { "Call java" });
     _ws = new ZbyWebSocket(this, this);
 }