Ejemplo n.º 1
0
    void Update()
    {
        if (!sequenceMatch)
        {
            sequenceMatch = CheckSequenceMatch();
        }

        if (sequenceMatch)
        {
            Debug.Log("Match!");
            if (OnSequenceMatch != null)
            {
                OnSequenceMatch();
            }
            reader.ClearSequence();
            sequenceMatch = false;
        }
    }