From b7f6de5d7871d21370c09ceacf7936592eb31137 Mon Sep 17 00:00:00 2001 From: Fangh Date: Wed, 31 Jan 2024 23:45:58 +0100 Subject: [PATCH] feat: scoring --- Assets/Scripts/RoomManager.cs | 2 +- Assets/Scripts/ScoringPage.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/RoomManager.cs b/Assets/Scripts/RoomManager.cs index f6b7d87..d3ec59a 100644 --- a/Assets/Scripts/RoomManager.cs +++ b/Assets/Scripts/RoomManager.cs @@ -293,7 +293,7 @@ private void OnNewGameStateStarted() case (int)GameState.Score: Debug.Log("It's score time !"); - scoringPage.Initialize(); + scoringPage.Initialize(myRoom); break; default: diff --git a/Assets/Scripts/ScoringPage.cs b/Assets/Scripts/ScoringPage.cs index 8efc78e..957d538 100644 --- a/Assets/Scripts/ScoringPage.cs +++ b/Assets/Scripts/ScoringPage.cs @@ -8,6 +8,7 @@ public class ScoringPage : MonoBehaviour public void Initialize(Room _room) { + gameObject.SetActive(true); foreach(PlayerSticker p in playerStickers) { p.gameObject.SetActive(false);