]> git.cameronkatri.com Git - gmtk-gamejam.git/commitdiff
Use string interpolation
authorCarson Katri <carson.katri@gmail.com>
Sun, 13 Jun 2021 01:18:12 +0000 (21:18 -0400)
committerCarson Katri <carson.katri@gmail.com>
Sun, 13 Jun 2021 01:18:12 +0000 (21:18 -0400)
Assets/Scripts/Controllers/GameController.cs

index 7801e178ab512794d0ea6f51f99c6794a7e4a857..a3783bdf7fd52a2315dbb63ecc82f5ecc40476b4 100644 (file)
@@ -61,7 +61,7 @@ namespace Controllers
       enemyScoreText.text = $"{enemy.score}";
 
       var remaining = TimeSpan.FromSeconds(timeLimit - (Time.time - startTime));
-      timerText.text = string.Format("{0:00}:{1:00}", remaining.Minutes, remaining.Seconds);
+      timerText.text = $"{remaining.Minutes:00}:{remaining.Seconds:00}";
     }
     
     public struct Player