2024-11-13 16:56:37 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
public class ProgressTime : MonoBehaviour
|
|
|
|
{
|
2024-12-21 19:57:23 +08:00
|
|
|
[SerializeField] private Text text;
|
2024-11-13 16:56:37 +08:00
|
|
|
|
|
|
|
private void Awake()
|
|
|
|
{
|
2024-12-21 19:57:23 +08:00
|
|
|
text = GetComponent<Text>();
|
2024-11-13 16:56:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
2024-12-21 19:57:23 +08:00
|
|
|
text.text = (GameSystem.ins.maxTime - GameSystem.ins.nowTime).ToString("#,##0.00");
|
2024-11-13 16:56:37 +08:00
|
|
|
}
|
|
|
|
}
|