Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Timer : MonoBehaviour
- {
- float timeRemaining = 0;
- public float TimePlace1;
- public float TimePlace2;
- void Update ()
- {
- timeRemaining += Time.deltaTime;
- }
- void OnGUI(){
- if (timeRemaining > -1) {
- GUI.Label(new Rect(TimePlace1,TimePlace2,200,200), "Time: "+(int)timeRemaining);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement