diff --git a/Assets/Scripts/SpellingBeeController.cs b/Assets/Scripts/SpellingBeeController.cs index 0ea788f..8465bcb 100644 --- a/Assets/Scripts/SpellingBeeController.cs +++ b/Assets/Scripts/SpellingBeeController.cs @@ -52,6 +52,7 @@ public class SpellingBeeController : MonoBehaviour { private bool gameOver; // Amount of seconds user gets per letter of the current word + // Set to 1 for testing; should be increased later private int secondsPerLetter = 1; // Counter that keeps track of how many words have been spelled correctly @@ -66,6 +67,7 @@ public class SpellingBeeController : MonoBehaviour { // We use -1 instead of 0 so SetRandomWord can simply increment it each time spelledWords = -1; gameOver = false; + input.text = ""; gameOverPanel.SetActive(false); replayButton.onClick.AddListener(() => Start()); @@ -124,6 +126,7 @@ public class SpellingBeeController : MonoBehaviour { } } + // Delete all letter objects void DeleteWord() { for (int i = 0; i < currentWord.Length; i++) { Destroy(letters[i]); diff --git a/Assets/Scripts/SpellingBeeThemeSelectionController.cs b/Assets/Scripts/SpellingBeeThemeSelectionController.cs index 1d408c5..7bfffc0 100644 --- a/Assets/Scripts/SpellingBeeThemeSelectionController.cs +++ b/Assets/Scripts/SpellingBeeThemeSelectionController.cs @@ -9,7 +9,6 @@ public class SpellingBeeThemeSelectionController : MonoBehaviour { private int buttonWidth = 600; private int canvasWidth = 1920; - private int canvasHeight = 1080; // Start is called before the first frame update void Start() {