Exemple #1
0
 public void PlayAgain()
 {
     scoreMgr.UpdatePLScore(0);
     scoreMgr.UpdateAIScore(0);
     scoreMgr.UpdateTime(0);
     SceneManager.LoadScene("pacmanScene");
 }
Exemple #2
0
    void Update()
    {
        timeTaken = (Time.time - startTime);

        string timeTakenStr = timeTaken.ToString("f1");

        timerText.text = timeTakenStr;

        scoreMgr.UpdateTime(timeTaken);
    }