i need help on my timer i keep on getting errors
help needed guys…
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Timer : MonoBehaviour{
float Timer = 300.0f;
public Text text;
public GameObject GameOverText;
public bool enable;
void Update()
{
Timer -= Time.deltaTime;
text.text = "Time Left:" + Mathf.Round(Timer);
if(Timer < 0f)
{
GameOverText.gameObject.SetActive (true);
}
}
}