Question by 
               Vasov97 · Jan 26, 2017 at 05:23 PM · 
                timetimer-scriptcountup  
              
 
              I have this script for timer to count up seconds, but when level restarts time remain the same. What should I do to restart time when level restarts? How to call this text to another script where is function for restarting level ?
using UnityEngine; using UnityEngine.UI;
public class TimerScript : MonoBehaviour { public Text timerText;
  void Update()
  {
      timerText.text = Time.time.ToString ("Score:0");
  }
 
               }
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
How to record lap time for player and AIs? 0 Answers
Allow player to Press Input.GetKeyDown once per update ? 0 Answers
Milliseconds Timer Question 1 Answer
Alarm Clock Using System Time 0 Answers
how can i take time value from timer (Asked again clearly) 2 Answers