| 1234567891011121314151617181920212223242526272829303132333435 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using UnityEngine.SceneManagement;
- public class TimeLimitGameView : MonoBehaviour
- {
- public Text highestScoreTxt;
- public Text currentScoreTxt;
- public Text timeTxt;
- GameMode1 gameMode;
- public static TimeLimitGameView ins;
- void Start()
- {
- ins = this;
- gameMode = (GameMode1) GameMgr.ins.gameMode;
- highestScoreTxt.text = gameMode.GetHighestScore().ToString();
- }
- void FixedUpdate()
- {
- timeTxt.text = gameMode.GetTimeStr();
- currentScoreTxt.text = gameMode.score.ToString();
- }
- public void Back()
- {
- AudioMgr.ins.PlayBtn();
- SceneManager.LoadScene("Home", LoadSceneMode.Single);
- }
- }
|