Example #1
0
    public void OnCheckButton()
    {
        var result = ValidateCard();

        if (!result)
        {
            _displayImage = WrongImage;
            _displayImage.GetComponent <Image>().enabled = true;
            _mistakes++;
        }
        else
        {
            _displayImage = CorrectImage;
            _displayImage.GetComponent <Image>().enabled = true;
            SceneChanger.EndGame();
        }

        if (_mistakes > Static.DifficultyModifiers.Number_of_mistakes)
        {
            SceneChanger.EndGame();
        }
    }
Example #2
0
 public void NewCard()
 {
     SceneChanger.EndGame();
 }