Example #1
0
    // Update is called once per frame
    void Update()
    {
        myo.Unlock(UnlockType.Hold);


        if (myo.pose != _lastPose)
        {
            if (myo.pose == Pose.Fist && Time.time - lastTime > timethreshold)
            {
                lastTime  = Time.time;
                _lastPose = myo.pose;

                UnityEngine.Vector3 point = findCollisionPosition();
                if (point != UnityEngine.Vector3.zero)
                {
                    tapHandler.handleTap(point.x, point.y);
                }
            }
        }
    }
Example #2
0
 void OnTouchEnter()
 {
     handler.handleTap(Meta.Hands.right.pointer.position.x, Meta.Hands.right.pointer.position.y);
 }