From 50bff13faeba541f4bb1df6dd71e6f4d4345c6b6 Mon Sep 17 00:00:00 2001 From: Fangh Date: Sun, 4 Feb 2024 14:12:27 +0100 Subject: [PATCH] fix: remove unused property + disable submitstartgame at start --- Assets/Scripts/GameManager.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index fa48f50..3e769c7 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -20,7 +20,6 @@ public class GameManager : MonoBehaviour [Header("Other component")] public float explanationTime = 4f; - private float currentExplanationTime = 0; [Header("Home Connection Component")] public TMP_InputField roomCodeField; @@ -65,7 +64,6 @@ private void Awake() private void Start() { - currentExplanationTime = explanationTime; HomeConnection.SetActive(true); WaitingRoom.SetActive(false); BeforeStart.SetActive(false); @@ -73,6 +71,7 @@ private void Start() VotePicture.SetActive(false); WaitingOtherPlayers.SetActive(false); EndGame.SetActive(false); + submitStartGame.SetActive(false); if (PlayerPrefs.HasKey("lastplayername")) playerNameField.text = PlayerPrefs.GetString("lastplayername");