@@ -26,12 +26,15 @@ public class ClientMainMenuState : GameStateBehaviour
26
26
[ SerializeField ] LobbyUIMediator m_LobbyUIMediator ;
27
27
[ SerializeField ] IPUIMediator m_IPUIMediator ;
28
28
[ SerializeField ] Button m_LobbyButton ;
29
+ [ SerializeField ] Button m_IPButton ;
29
30
[ SerializeField ] GameObject m_SignInSpinner ;
30
31
31
32
protected override void Awake ( )
32
33
{
33
34
m_LobbyButton . interactable = false ;
35
+ m_IPButton . interactable = false ;
34
36
m_LobbyUIMediator . Hide ( ) ;
37
+ m_IPUIMediator . Hide ( ) ;
35
38
base . Awake ( ) ;
36
39
}
37
40
@@ -74,6 +77,7 @@ async void InjectDependenciesAndInitialize(AuthenticationServiceFacade authServi
74
77
void OnAuthSignIn ( )
75
78
{
76
79
m_LobbyButton . interactable = true ;
80
+ m_IPButton . interactable = true ;
77
81
m_SignInSpinner . SetActive ( false ) ;
78
82
79
83
Debug . Log ( $ "Signed in. Unity Player ID { AuthenticationService . Instance . PlayerId } ") ;
@@ -86,6 +90,7 @@ void OnAuthSignIn()
86
90
void OnSignInFailed ( )
87
91
{
88
92
m_LobbyButton . interactable = false ;
93
+ m_IPButton . interactable = false ;
89
94
m_SignInSpinner . SetActive ( false ) ;
90
95
}
91
96
}
@@ -94,6 +99,7 @@ public void OnStartClicked()
94
99
{
95
100
m_LobbyUIMediator . ToggleJoinLobbyUI ( ) ;
96
101
m_LobbyUIMediator . Show ( ) ;
102
+ m_IPUIMediator . Hide ( ) ;
97
103
}
98
104
99
105
public void OnDirectIPClicked ( )
0 commit comments