countdown timer csharp unity

Code Example - countdown timer csharp unity

                
                        function Update()
 {
     timeLeft -= Time.deltaTime;
     if ( timeLeft < 0 )
     {
         GameOver();
     }
 }