mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
22 lines
417 B
C#
22 lines
417 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using DeathBook.Util;
|
|
using DeathBook.Model;
|
|
using UnityEngine.UI;
|
|
|
|
public class Timer : MonoBehaviour
|
|
{
|
|
public Text TimerText;
|
|
int lastTime = -1;
|
|
|
|
void Update()
|
|
{
|
|
int time = LevelManager.Instance.GameLevel.DayTime / 30;
|
|
if (time != lastTime)
|
|
{
|
|
TimerText.text = Utils.GetTimeString(time * 30);
|
|
lastTime = time;
|
|
}
|
|
}
|
|
}
|