mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-31 21:27:06 +01:00
23 lines
483 B
C#
23 lines
483 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TimeTextScript : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject GamerManager;
|
|
|
|
private string timeStr = "";
|
|
private Text timeText;
|
|
|
|
private void Start()
|
|
{
|
|
timeText = GetComponent<Text>();
|
|
}
|
|
void Update()
|
|
{
|
|
timeStr = GamerManager.GetComponent<TimeManager>().GetTimeString();
|
|
timeText.text = timeStr;
|
|
}
|
|
}
|