Esempio n. 1
0
    IEnumerator DelayedConclusion()
    {
        yield return(new WaitForSeconds(1));

        ShowAllCards();
        yield return(new WaitForSeconds(1));

        ctrl.ConcludeMinigame();
    }
Esempio n. 2
0
    IEnumerator EndPuzzle()
    {
        yield return(new WaitForSeconds(1));

        // Remove pieces
        MeshFilter[] pieces = missingPieces.GetComponentsInChildren <MeshFilter>();
        foreach (MeshFilter m in pieces)
        {
            Destroy(m.gameObject);
        }
        // Remove board
        Destroy(board.gameObject);
        manager.MinigameWon();
        ctrl.ConcludeMinigame();
        done    = true;
        routine = null;
    }