Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        // this is here to force the orientation of the app; the UI looks funny if it goes into vertical mode
        Screen.orientation = ScreenOrientation.LandscapeRight;

        showNotificationScript = GetComponent <NdnBleDisplayTextScript>();

        onStatusData    = new onStatusDataClass(logTextBox, showNotificationScript, face);
        onStatusTimeout = new onStatusTimeoutClass(logTextBox, face, showNotificationScript);

        try
        {
            face = new Face
                       (new TcpTransport(), new TcpTransport.ConnectionInfo("127.0.0.1"));
        }
        catch (Exception e)
        {
            logTextBox.text += "\n" + "exception: " + e.Message;
        }
    }
Esempio n. 2
0
 public onStatusDataClass(Text textReference, NdnBleDisplayTextScript notifyScript, Face face)
 {
     logTextBox    = textReference;
     mNotifyScript = notifyScript;
     mFace         = face;
 }
Esempio n. 3
0
 public onStatusTimeoutClass(Text textReference, Face face, NdnBleDisplayTextScript notifyScript)
 {
     logTextBox    = textReference;
     mFace         = face;
     mNotifyScript = notifyScript;
 }