| 12345678910111213141516171819202122232425262728293031 |
- 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();
- }
- }
|