From 3ef15b74c9b43c19dddcdc5fcb98069f287d4bc9 Mon Sep 17 00:00:00 2001
From: Daffa Romyz Aufa <80190953+DaffaRomyz@users.noreply.github.com>
Date: Sun, 16 Apr 2023 13:20:16 +0700
Subject: [PATCH] feat : change time format

---
 Assets/Scripts/ScoreBoard/ScoreUI.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Assets/Scripts/ScoreBoard/ScoreUI.cs b/Assets/Scripts/ScoreBoard/ScoreUI.cs
index c1880f93..e778dc35 100644
--- a/Assets/Scripts/ScoreBoard/ScoreUI.cs
+++ b/Assets/Scripts/ScoreBoard/ScoreUI.cs
@@ -22,7 +22,7 @@ public class ScoreUI : MonoBehaviour
             var row = Instantiate(rowui, transform).GetComponent<RowUI>();
             row.rank.text = (i + 1).ToString();
             row.name.text = scores[i].name;
-            row.time.text = scores[i].time.ToString();
+            row.time.text = string.Format("{0:00}:{1:00}", Mathf.FloorToInt(scores[i].time / 60), Mathf.FloorToInt(scores[i].time % 60));
         }
     }
 }
-- 
GitLab