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(); } }
public void NewCard() { SceneChanger.EndGame(); }