コード例 #1
0
 void Start()
 {
     //closeSocket();
     //setupSocket();
     sendDataAction = new UnityAction <string>(wifiThread);
     sendDataEvent  = new SendDataEvent();
     sendDataEvent.AddListener(sendDataAction);
 }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        status = true;
        //gameObject.SetActive(true);
        dataReceivedAction = new UnityAction <JObject>(done);
        dataReceivedEvent  = new DataReceivedEvent();
        dataReceivedEvent.AddListener(dataReceivedAction);

        dataWaitingAction = new UnityAction <string>(wait);
        dataWaitingEvent  = new SendDataEvent();
        dataWaitingEvent.AddListener(dataWaitingAction);
    }