public void TriggerWrongCombination()
 {
     if (playerController != null)
     {
         playerController.IncrementTimer(-20);
     }
 }
 public void updateResultConsole(int value, PlayerControllerMap playerControllerMap)
 {
     if (hasFinished)
     {
         return;
     }
     _numberOfIteration++;
     _resultConsole.updateValue(value);
     if (_resultConsole.Result == _finalValue && numberOfSteps == _numberOfIteration)
     {
         FindObjectOfType <AudioManager>().Play("OperationRight");
         StartCoroutine(doors.OpenDoorsWithDelay(0.5f));
         confirmCounterForUser();
     }
     else if (_numberOfIteration == numberOfSteps)
     {
         FindObjectOfType <AudioManager>().Play("OperationWrong");
         playerControllerMap.IncrementTimer(-timePenalityInSeconds);
         _resultConsole.reset(_startingValue);
         foreach (ButtonConsole buttonConsole in _buttonConsoles)
         {
             buttonConsole.Button.resetPressedStatus();
         }
         StartCoroutine(resetCounterForUser());
     }
     else
     {
         FindObjectOfType <AudioManager>().Play("OperationNorm");
         updateCounterForUser(_numberOfIteration - 1);
     }
 }
    public void VerifyCombination(PlayerControllerMap player)
    {
        int winCount = 0;

        if (currentPicture == 0)
        {
            for (int i = 0; i < 9; i++)
            {
                PicturePiece piece = pieces[i].GetComponent <PicturePiece>();
                if (piece.Active)
                {
                    if (firstWinnerIndexes.Contains(piece.PictureID))
                    {
                        winCount++;
                    }
                    else
                    {
                        winCount--;
                    }
                }
            }
            if (winCount == 3)
            {
                currentPicture++;
                FindObjectOfType <AudioManager>().Play("MemoryFirstRight");
                SetUpRoom();
            }
            else
            {
                FindObjectOfType <AudioManager>().Play("MemoryWrong");
                player.IncrementTimer(-20);
            }
        }
        else if (currentPicture == 1)
        {
            for (int i = 0; i < 9; i++)
            {
                PicturePiece piece = pieces[i].GetComponent <PicturePiece>();
                if (piece.Active)
                {
                    if (secondWinnerIndexes.Contains(piece.PictureID))
                    {
                        winCount++;
                    }
                    else
                    {
                        winCount--;
                    }
                }
            }
            if (winCount == 3)
            {
                FindObjectOfType <AudioManager>().Play("MemorySecondRight");
                StartCoroutine(myRoom.ExitDoor.OpenDoorsWithDelay(0.5f));
            }
            else
            {
                FindObjectOfType <AudioManager>().Play("MemoryWrong");
                player.IncrementTimer(-20);
            }
        }
    }