Fixed leaderboard issues

This commit is contained in:
Pasha Bibko
2026-01-27 14:22:07 +00:00
parent e2c73f031c
commit 5e6828c2ee
3 changed files with 6 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ MonoBehaviour:
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_HorizontalOverflow: 1
m_VerticalOverflow: 1
m_LineSpacing: 1
m_Text: NEW TEXT - 88

View File

@@ -475,6 +475,7 @@ MonoBehaviour:
<SpawnWeight>k__BackingField: 4
<Parent>k__BackingField: {fileID: 3239915826142415764}
<PasswordField>k__BackingField: {fileID: 3006133537337724145}
<LeaderboardObject>k__BackingField: {fileID: 7093985439851859873}
<SpawnedWindowCount>k__BackingField: 0
<AutoSpawn>k__BackingField: 1
--- !u!1 &2020022267469913571

View File

@@ -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");
}