//----------------------------------------------------------------------------------------------------- // Reset current puzzle public void ResetPuzzle() { if (puzzle == null) { return; } Time.timeScale = 0; puzzle.ResetProgress(puzzle.name); remainingHints = hintLimit; timerTime = Time.time + timer; PlayerPrefs.SetInt(puzzle.name + "_hints", hintLimit); PlayerPrefs.SetFloat(puzzle.name + "_timer", timer); if (hintCounterUI) { hintCounterUI.gameObject.SetActive(remainingHints > 0); hintCounterUI.text = remainingHints.ToString(); } puzzle.DecomposePuzzle(); Time.timeScale = 1.0f; }