// Update is called once per frame void Update() { if (Input.GetKey("escape")) { Application.Quit(); } if (control == choiceOutcome.RIGHT) { //reset words to advanced set of secret words resetWords(Difficulty.ADVANCED); score += 10; textScore.text = "Score: " + score.ToString(); } else if (control == choiceOutcome.WRONG) { //reset words to advanced set of secret words //EditorApplication.Beep(); StartCoroutine(wrongPanel.GetComponent <WrongPanelController> ().wrongPanelActivate()); resetWords(Difficulty.ADVANCED); } else if (control == choiceOutcome.SKIP) { //reset words same as wrong, but no wrong message resetWords(Difficulty.ADVANCED); } control = choiceOutcome.NONE; }
public void skipGame() { control = choiceOutcome.SKIP; }