示例#1
0
    void ResolveGesture()
    {
        //Remove the head of the required flags
        flagsRequired.RemoveAt(0);

        //If there's no flags left then you're solved
        if (flagsRequired.Count == 0)
        {
            solved = true;
            StartCoroutine(SuccessFlag());
            controller.IncrementScore();
        }
        else
        {
            StartCoroutine(UpdateFlag());
        }
    }