// Draw some basic instructions. void OnGUI() { GUI.skin.label.fontSize = 20; GForceHub hub = GForceHub.instance; // Access the attached object. GForceDevice device = gforce.GetComponent <GForceDevice>(); if (null != device) { if (!string.IsNullOrEmpty(hub.lastlog)) { log = hub.lastlog; } GUI.Label(new Rect(12, 8, Screen.width, Screen.height), log); } else { GUI.Label(new Rect(12, 8, Screen.width, Screen.height), "Loading failed." ); } }
public Listener(GForceHub theObj) { hubcomp = theObj; }
public Listener(GForceHub hub) { gForceHub_ = hub; }