using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class TimerScript : MonoBehaviour {
public Text timerText;
private float secondsCount;
private int count;
// Use this for initialization
void Start () {
count = 0;
}
// Update is called once per frame
void Update () {
count = count + 1;
secondsCount += Time.deltaTime;
timerText.text =" Score:" + secondsCount.ToString();
}
↧