void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Object"))
     {
         myoDataScript.NotifyUserAction();
     }
 }
Exemplo n.º 2
0
    // Extend the unlock if ThalmcHub's locking policy is standard, and notifies the given myo that a user action was
    // recognized.
    void ExtendUnlockAndNotifyUserAction(ThalmicMyo myo)
    {
        ThalmicHub hub = ThalmicHub.instance;

        if (hub.lockingPolicy == LockingPolicy.Standard) {
            myo.Unlock (UnlockType.Timed);
        }
        myo.NotifyUserAction ();
    }
Exemplo n.º 3
0
    void ExtendedUnlockAndNotifyUserAction(ThalmicMyo myo)
    {
        ThalmicHub hub = ThalmicHub.instance;

        if (hub.lockingPolicy == LockingPolicy.Standard)
        {
            myo.Unlock(UnlockType.Timed);
        }
        myo.NotifyUserAction();
    }
Exemplo n.º 4
0
    // Extend the unlock if ThalmcHub's locking policy is standard, and notifies the given myo that a user action was
    // recognized.
    void ExtendUnlockAndNotifyUserAction(ThalmicMyo myo)
    {
        ThalmicHub hub = ThalmicHub.instance;

        if (hub.lockingPolicy == LockingPolicy.Standard)
        {
            myo.Unlock(UnlockType.Timed);
        }

        if (!OnPlayer)
        {
            Debug.Log("colourboxevent");
            myo.NotifyUserAction();
        }
    }
    void VibrateMyo()
    {
        myoDataScript.NotifyUserAction();

        Invoke("VibrateMyo", Time.deltaTime * 7);
    }