Quantcast
Channel: Questions in topic: "count"
Viewing all articles
Browse latest Browse all 187

This code shows me seconds and miliseconds after game started. What should I do because I want to show only seconds ?

$
0
0
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(); }

Viewing all articles
Browse latest Browse all 187

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>