Question by
DoubleKlik · Jul 10, 2017 at 10:03 PM ·
c#unity 5
How could I make and display a timer counting up?
Im making a game meant for speedrunning, and I want to know how i can implement a timer in my game. Help please?
Comment
Answer by Menyus777 · Jul 10, 2017 at 10:12 PM
Check Unity Tutorials, Short Answer: Make a Canvas, Add a Text, Make a script: then do this: Text Timer; int GameTime = 0;
public void Timer(){
Timer.text = GameTime;
}
void Update(){
GameTime = GameTime + Time.deltaTime;
Timer();
}
Your answer
Follow this Question
Related Questions
How to fix snake behavior in Unity3d? 0 Answers
How can I make this character move smoothly? 1 Answer
Navigation in VR Mode?!! 0 Answers
Unity3d Character Spawn Point 0 Answers