Skip to content

Instantly share code, notes, and snippets.

@braaad
braaad / TextMeshTimerV2.cs
Last active August 29, 2015 13:56
Simple timer for Unity3d that updates a Text Mesh
using System;
using UnityEngine;
public class TextMeshTimerV2 : MonoBehaviour {
private TextMesh _textMesh;
private bool _isRunning;
private bool _wasRunningLastUpdate;
private float _elapsedSeconds;
private float _timeLastUpdate;
@braaad
braaad / TextMeshTimer.cs
Created February 19, 2014 14:20
Simple Unity Timer Display
using System;
using UnityEngine;
public class TextMeshTimer : MonoBehaviour {
private TextMesh _textMesh;
private bool _isRunning;
private float _elapsedSeconds;
void Start() {