예제 #1
0
    // Called when the player clicks the correct collectible
    public void foundCollectible()
    {
        Collectible c;

        if (!isReverse)
        {
            c = patternList[0];
            patternList.RemoveAt(0);
        }
        else
        {
            c = patternList[patternList.Count - 1];
            patternList.RemoveAt(patternList.Count - 1);
        }


        if (patternList.Count == 0)
        {
            patternManager.seqCompleted();
        }

        foundPattern.Enqueue(c);
    }