コード例 #1
0
    // 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."
                      );
        }
    }
コード例 #2
0
ファイル: GForceHub.cs プロジェクト: joeyu/gForceSDK
 public Listener(GForceHub theObj)
 {
     hubcomp = theObj;
 }
コード例 #3
0
 public Listener(GForceHub hub)
 {
     gForceHub_ = hub;
 }