RosimInc 8cededcf49 Added full shout bubbles, generated random levels.
Signed-off-by: RosimInc <rosim_inc@hotmail.com>
2015-08-16 23:37:17 -04:00

22 lines
403 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;
}
}
}