fix: remove unused property + disable submitstartgame at start
This commit is contained in:
parent
cf0a4d578c
commit
50bff13fae
@ -20,7 +20,6 @@ public class GameManager : MonoBehaviour
|
|||||||
|
|
||||||
[Header("Other component")]
|
[Header("Other component")]
|
||||||
public float explanationTime = 4f;
|
public float explanationTime = 4f;
|
||||||
private float currentExplanationTime = 0;
|
|
||||||
|
|
||||||
[Header("Home Connection Component")]
|
[Header("Home Connection Component")]
|
||||||
public TMP_InputField roomCodeField;
|
public TMP_InputField roomCodeField;
|
||||||
@ -65,7 +64,6 @@ private void Awake()
|
|||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
currentExplanationTime = explanationTime;
|
|
||||||
HomeConnection.SetActive(true);
|
HomeConnection.SetActive(true);
|
||||||
WaitingRoom.SetActive(false);
|
WaitingRoom.SetActive(false);
|
||||||
BeforeStart.SetActive(false);
|
BeforeStart.SetActive(false);
|
||||||
@ -73,6 +71,7 @@ private void Start()
|
|||||||
VotePicture.SetActive(false);
|
VotePicture.SetActive(false);
|
||||||
WaitingOtherPlayers.SetActive(false);
|
WaitingOtherPlayers.SetActive(false);
|
||||||
EndGame.SetActive(false);
|
EndGame.SetActive(false);
|
||||||
|
submitStartGame.SetActive(false);
|
||||||
|
|
||||||
if (PlayerPrefs.HasKey("lastplayername"))
|
if (PlayerPrefs.HasKey("lastplayername"))
|
||||||
playerNameField.text = PlayerPrefs.GetString("lastplayername");
|
playerNameField.text = PlayerPrefs.GetString("lastplayername");
|
||||||
|
Loading…
Reference in New Issue
Block a user