private bool createHub()
    {
        try {
            _hub = new Thalmic.Myo.Hub(applicationIdentifier, hub_MyoPaired);

            _hub.SetLockingPolicy(lockingPolicy);
        } catch (System.Exception) {
            Debug.Log("ThalmicHub failed to initialize.");
            return(false);
        }
        return(true);
    }
Beispiel #2
0
    private bool createHub()
    {
                #if UNITY_EDITOR || !UNITY_IPHONE
        try {
            _hub = new Thalmic.Myo.Hub(applicationIdentifier, hub_MyoPaired);

            _hub.SetLockingPolicy(lockingPolicy);
        } catch (System.Exception e) {
            Debug.Log("ThalmicHub failed to initialize." + e.ToString());
            return(false);
        }
                #endif
        return(true);
    }
    private bool createHub()
    {
        try {
            _hub = new Thalmic.Myo.Hub (applicationIdentifier, hub_MyoPaired);

            _hub.SetLockingPolicy (lockingPolicy);
        } catch (System.Exception) {
            Debug.Log ("ThalmicHub failed to initialize.");
            return false;
        }
        return true;
    }
    private bool createHub () {

//#if UNITY_EDITOR || !UNITY_IPHONE
#if UNITY_EDITOR
        try
        {
            _hub = new Thalmic.Myo.Hub (applicationIdentifier, hub_MyoPaired);

            _hub.SetLockingPolicy (lockingPolicy);
        } catch (System.Exception e) {
            Debug.Log ("ThalmicHub failed to initialize." + e.ToString());
            return false;
        }
#endif
        return true;
    }