IEnumerator DelayedConclusion() { yield return(new WaitForSeconds(1)); ShowAllCards(); yield return(new WaitForSeconds(1)); ctrl.ConcludeMinigame(); }
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; }