// Input related void UpdateInput() { if (!Playing || GameManager.Instance.TutorialActiveFlag) { return; } foreach (string c in allLetters) { if (Input.GetKeyDown(c)) { TypeLetter(c); } } if (Input.GetKeyDown(KeyCode.Backspace)) { RemoveLetter(); } if (Input.GetKeyDown(KeyCode.Escape)) { if (entry.IsEmpty()) { EndGameplay(); } else { CancelEntry(); } } if (Input.GetKeyDown(KeyCode.Return)) { if (!entry.IsEmpty()) { SubmitEntry(); } } if (Input.GetKeyDown(KeyCode.Space)) { ShufflePuzzle(); } if (Input.GetKeyDown(KeyCode.UpArrow)) { if (qtm.QuestComplete) { EndLevel(success: true); } } }