Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //A simple countdown timer
- var myTimer : float = 5.0;
- function Update () {
- if(myTimer > 0){
- myTimer -= Time.deltaTime;
- }
- if(myTimer <= 0){
- Debug.Log("GAME OVER");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement