} // End of GetNumber // When the player has the right answer, this function will house the algorithm private void CorrectAnswer() { // Update the score score.AccessUpdateScoreCorrect(); // ---- // Stop the spawners activateSpawner = false; // Lock the exit from further comparison lockCheckFunction = true; // ---- // Murder the minions! MinionGenocide(); // ---- // Generate a new equation problemBox.Generate(); letterbox.Generate(); // Timer to unlock the 'Lock Check Function' variable StartCoroutine(WaitTimer(10)); //lockCheckFunction = false; } // End of CorrectAnswer