Fixed leaderboard issues
This commit is contained in:
@@ -23,6 +23,7 @@ namespace InterfaceOff
|
||||
[field: SerializeField] private SpawnableWindowType[] WindowTypes { get; set; }
|
||||
[field: SerializeField] private GameObject Parent { get; set; }
|
||||
[field: SerializeField] private GameObject PasswordField { get; set; }
|
||||
[field: SerializeField] private GameObject LeaderboardObject { get; set; }
|
||||
private int TotalSpawnWeight { get; set; }
|
||||
|
||||
[field: SerializeField] public int SpawnedWindowCount { get; private set; }
|
||||
@@ -129,12 +130,12 @@ namespace InterfaceOff
|
||||
PasswordField.SetActive(false);
|
||||
|
||||
/* Else checks if it should change the active scene */
|
||||
if (Input.GetKey(KeyCode.Space))
|
||||
if (Input.GetKey(KeyCode.Space) && LeaderboardObject.activeSelf)
|
||||
{
|
||||
SceneController.ReloadScene();
|
||||
}
|
||||
|
||||
else if (Input.GetKey(KeyCode.Tab))
|
||||
else if (Input.GetKey(KeyCode.Tab) && LeaderboardObject.activeSelf)
|
||||
{
|
||||
SceneController.Load(name: "MenuScene");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user