// Update is called once per frame void Update() { //Update in-game timer saveData = LocalData.UpdateTimer(saveData); //If there are less than 10 seconds in the minute, add a 0 to the front for the width to be consistent if (saveData.getSeconds() < 10) { timerText.text = "" + saveData.getMinutes() + ":0" + saveData.getSeconds(); } else { timerText.text = "" + saveData.getMinutes() + ":" + saveData.getSeconds(); } CheckKeyCollection(); CheckWinState(); }