コード例 #1
0
ファイル: ShipAI.cs プロジェクト: thomasfdm/shiphappens
    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());
        }
    }