From d0dfb10fc0df8d3737ac2cc1746745f302b87a9e Mon Sep 17 00:00:00 2001 From: bozmir Date: Fri, 20 Dec 2024 19:04:13 +0100 Subject: [PATCH] betteer score visuals --- Assets/FirebaseWebGL/Scoreboard.cs | 4 ++-- Assets/Scenes/Main.unity | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Assets/FirebaseWebGL/Scoreboard.cs b/Assets/FirebaseWebGL/Scoreboard.cs index 287116fa..9351cc59 100644 --- a/Assets/FirebaseWebGL/Scoreboard.cs +++ b/Assets/FirebaseWebGL/Scoreboard.cs @@ -14,7 +14,7 @@ namespace Netherlands3D.Twin public class ScoreboardManager : MonoBehaviour { - public int scoreListCount = 5; + public int scoreListCount = 10; [SerializeField] private Timer timer; public TMP_InputField nameInputField; public TMP_Text scoreField; @@ -134,7 +134,7 @@ void DisplayScores(string json) int rank = 1; foreach (var kvp in sortedDictionary) { - scoreboardText.text += $"Rank: {rank}, Name: {kvp.Value.name}, Score: {kvp.Value.score.ToString()} \n"; + scoreboardText.text += $"Rank: {rank}, Name: {kvp.Value.name}, Time: {kvp.Value.score.ToString()} \n"; rank++; } } diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 2fd73d13..017e5f58 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -17867,22 +17867,22 @@ PrefabInstance: - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.w - value: 0.1978738 + value: 0.19786951 objectReference: {fileID: 0} - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.x - value: 0.08261481 + value: 0.08261209 objectReference: {fileID: 0} - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.y - value: 0.9013351 + value: 0.9013376 objectReference: {fileID: 0} - target: {fileID: 3849934062868920522, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} propertyPath: m_LocalRotation.z - value: -0.37631875 + value: -0.3763156 objectReference: {fileID: 0} - target: {fileID: 3919916255551741050, guid: 5fbb7c7c8ec47e849afba1b658f3e07e, type: 3} @@ -26327,6 +26327,11 @@ PrefabInstance: propertyPath: timer value: objectReference: {fileID: 1789287230} + - target: {fileID: 3120498152161033060, guid: 01013eea923dc25409c77c014d359058, + type: 3} + propertyPath: scoreListCount + value: 10 + objectReference: {fileID: 0} - target: {fileID: 7038513169639814724, guid: 01013eea923dc25409c77c014d359058, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size