// --------------------------- ADDITION GAME METHODS ----------------------------------------------------------- // // Reset addition game private void ResetGameAdd() { op1.correctAnswer = false; op2.correctAnswer = false; timeLeft = startingTime; previousTime = startingTime; // Allow all numbers to be placed again for (int i = 0; i < cubes.Length; i++) { cubes[i].correctNumber = true; // Reset all correctNumber booleans to true cubes[i].hasBeenPlaced1 = false; // Reset placed on 1st wall boolean to false cubes[i].hasBeenPlaced2 = false; // Reset placed on 2nd wall boolean to false cubes[i].op1Allowed = true; cubes[i].op2Allowed = true; cubes[i].transform.position = originalPosition[i]; // Reset positions of numbers cubes[i].transform.rotation = Quaternion.identity; // Reset rotations of numbers } levelText.text = "Level: " + (int)level; op1.GetComponent <Renderer>().material.color = new Color(0.6f, 0.6f, 0.6f); op2.GetComponent <Renderer>().material.color = new Color(0.6f, 0.6f, 0.6f); }