Skip to content

Commit 154c019

Browse files
committed
Also blocking the IP connection if not authenticated
1 parent 5af1f55 commit 154c019

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Assets/BossRoom/Scenes/MainMenu.unity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:1514fe9b4185f0b05599f02204bdc7f84659328f5cef76abb47c1ec5b0731e4e
3-
size 84906
2+
oid sha256:8410ce21084bc960ca6ca38c871c95c75343be782745d790a91a4fdff7979121
3+
size 85527

Assets/BossRoom/Scripts/Client/Game/State/ClientMainMenuState.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ public class ClientMainMenuState : GameStateBehaviour
2626
[SerializeField] LobbyUIMediator m_LobbyUIMediator;
2727
[SerializeField] IPUIMediator m_IPUIMediator;
2828
[SerializeField] Button m_LobbyButton;
29+
[SerializeField] Button m_IPButton;
2930
[SerializeField] GameObject m_SignInSpinner;
3031

3132
protected override void Awake()
3233
{
3334
m_LobbyButton.interactable = false;
35+
m_IPButton.interactable = false;
3436
m_LobbyUIMediator.Hide();
37+
m_IPUIMediator.Hide();
3538
base.Awake();
3639
}
3740

@@ -74,6 +77,7 @@ async void InjectDependenciesAndInitialize(AuthenticationServiceFacade authServi
7477
void OnAuthSignIn()
7578
{
7679
m_LobbyButton.interactable = true;
80+
m_IPButton.interactable = true;
7781
m_SignInSpinner.SetActive(false);
7882

7983
Debug.Log($"Signed in. Unity Player ID {AuthenticationService.Instance.PlayerId}");
@@ -86,6 +90,7 @@ void OnAuthSignIn()
8690
void OnSignInFailed()
8791
{
8892
m_LobbyButton.interactable = false;
93+
m_IPButton.interactable = false;
8994
m_SignInSpinner.SetActive(false);
9095
}
9196
}
@@ -94,6 +99,7 @@ public void OnStartClicked()
9499
{
95100
m_LobbyUIMediator.ToggleJoinLobbyUI();
96101
m_LobbyUIMediator.Show();
102+
m_IPUIMediator.Hide();
97103
}
98104

99105
public void OnDirectIPClicked()

0 commit comments

Comments
 (0)