Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (ui_timer != null)
     {
         ui_timer.Set_Time(Time_To_String());
         start_time_seconds -= Time.deltaTime;
         if (start_time_seconds <= 0.0f)
         {
             //end game
         }
     }
 }
 private void Update()
 {
     if (ui_timer == null)
     {
         ui_timer = UI_Timer.ui_timer;
     }
     if (ui_timer != null)
     {
         raw_seconds -= Time.deltaTime;
         int minutes = Seconds_To_Minutes();
         int seconds = Seconds_To_Seconds(minutes);
         ui_timer.Set_Time(Time_String(minutes, seconds));
     }
 }