using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class TimeLimitGameView : MonoBehaviour { public Text nickNameTxt; public Text highestScoreTxt; public Text currentScoreTxt; public Text timeTxt; TimeLimitGameMode gameMode; public static TimeLimitGameView ins; void Start() { ins = this; gameMode = (TimeLimitGameMode) GameMgr.ins.gameMode; nickNameTxt.text = LoginMgr.myUserInfo.nickname; highestScoreTxt.text = LoginMgr.myUserInfo.timeLimitGameHighestScore.ToString(); } void Update() { timeTxt.text = gameMode.GetTimeStr(); currentScoreTxt.text = gameMode.score.ToString(); } }