void onTapped(string identifier, int combination)
    {
        bool[] arr = TapCombination.toFingers(combination);
        Log("onTapped : " + identifier + ", " + combination);

        // added modeIdentifier - turn received Tap combination into an integer (used for mapID)
        int modeIdentifier = 0;

        if (arr[0])
        {
            modeIdentifier += 1;
        }
        if (arr[1])
        {
            modeIdentifier += 2;
        }
        if (arr[2])
        {
            modeIdentifier += 4;
        }
        if (arr[3])
        {
            modeIdentifier += 8;
        }
        if (arr[4])
        {
            modeIdentifier += 16;
        }

        actionProcessing(modeIdentifier);
    }
 void onTapped(string identifier, int combination)
 {
     bool[] arr = TapCombination.toFingers(combination);
     Log("onTapped : " + identifier + ", " + combination);
 }
Пример #3
0
 void onTapped(string identifier, int combination)
 {
     Debug.Log("UNITY TAP CALLBACK --- onTapped : " + identifier + ", " + combination);
     bool[] arr = TapCombination.toFingers(combination);
     Debug.Log("UNITY TAP CALLBACK --- onTapped, fingers : thumb " + arr [0] + ", index " + arr [1] + ", middle " + arr [2] + ", ring " + arr [3] + ", pinky " + arr [4]);
 }