// 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 <ShowTextForAFewSeconds>(); 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; } }
public onStatusTimeoutClass(Text textReference, Face face, ShowTextForAFewSeconds notifyScript) { logTextBox = textReference; mFace = face; mNotifyScript = notifyScript; }
public onStatusDataClass(Text textReference, ShowTextForAFewSeconds notifyScript, Face face) { logTextBox = textReference; mNotifyScript = notifyScript; mFace = face; }