- Home /
Best Answer
Answer by Kiwasi · Aug 20, 2014 at 03:27 AM
public float timer;
void Start(){
timer = Random.Range(5f,10f);
}
void Update (){
timer -= Time.deltaTime;
if (timer<0){
Debug.Log("Time's up");
timer = Random.Range(5f,10f);
}
}
Your answer
Follow this Question
Related Questions
CountDown Timer Help (Seconds problem) 2 Answers
Time does not start counting down when need to 1 Answer
Format String Minutes:Seconds 3 Answers
Stop and Resume Timer 0 Answers
Start timer with trigger 1 Answer