Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

countdown to start level?

$
0
0
Hello,
I need to create a timer that will go at the beginning of the level, that countdowns from 3 so the player knows when to start the game (eg. 3..2..1..GO!). During this time, the player should not be able to move.

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.IO;
  4. using System;
  5. using System.Threading;
  6.  
  7. public class Timer : MonoBehaviour {
  8.  
  9.     static bool startGame=false;
  10.    
  11.     void Start () {
  12.    
  13.         startGame = true;
  14.        
  15.         if (startGame == true)...
countdown to start level?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>