Esempio n. 1
0
    public bool ValidateRune(bool[] runeIndices, int[] touches)
    {
        int[] indiceCounts = new int[9];
        for (int i = 0; i < Indices.Length; i++)
        {
            indiceCounts[TouchController.GetBoolIndex(Indices[i])]++;
        }

        bool value = true;

        for (int i = 0; i < touches.Length; i++)
        {
            if (indiceCounts[i] != touches[i])
            {
                value = false;
                break;
            }
        }
        // Debug.Log("Rune validated!");
        return(value);
    }