void OnTriggerEnter(Collider other) { if (other.CompareTag("Object")) { myoDataScript.NotifyUserAction(); } }
// 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 (); }
void ExtendedUnlockAndNotifyUserAction(ThalmicMyo myo) { ThalmicHub hub = ThalmicHub.instance; if (hub.lockingPolicy == LockingPolicy.Standard) { myo.Unlock(UnlockType.Timed); } myo.NotifyUserAction(); }
// 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); }