Patrice Vignola 46968948fb Merge branch 'master' of https://github.com/ConjureETS/DeathBook
Conflicts:
	Assets/Scripts/Models/Status.cs
2015-08-16 23:42:47 -04:00

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;
}
}
}