public void PlayAgain() { scoreMgr.UpdatePLScore(0); scoreMgr.UpdateAIScore(0); scoreMgr.UpdateTime(0); SceneManager.LoadScene("pacmanScene"); }
void Update() { timeTaken = (Time.time - startTime); string timeTakenStr = timeTaken.ToString("f1"); timerText.text = timeTakenStr; scoreMgr.UpdateTime(timeTaken); }