File tree Expand file tree Collapse file tree 4 files changed +19
-24
lines changed Expand file tree Collapse file tree 4 files changed +19
-24
lines changed Original file line number Diff line number Diff line change 1
1
version https://git-lfs.github.com/spec/v1
2
- oid sha256:5790cc2f653d56216f8d97d9759232fc2fb26b956469cb2b2ff1450613e20f82
3
- size 70413
2
+ oid sha256:c35a9ba013ee2c28224c5aaee30e2ce0b8b3773c1c24cf119b643d7a9acdead7
3
+ size 84071
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public class ClientMainMenuState : GameStateBehaviour
29
29
30
30
[ SerializeField ] NameGenerationData m_NameGenerationData ;
31
31
[ SerializeField ] LobbyUIMediator m_LobbyUIMediator ;
32
+ [ SerializeField ] IPUIMediator m_IPUIMediator ;
32
33
33
34
[ SerializeField ] CanvasGroup m_MainMenuButtonsCanvasGroup ;
34
35
[ SerializeField ] GameObject m_SignInSpinner ;
@@ -47,6 +48,7 @@ void InjectDependenciesAndInitialize(AuthenticationServiceFacade authServiceFaca
47
48
48
49
m_Scope . BindInstanceAsSingle ( m_NameGenerationData ) ;
49
50
m_Scope . BindInstanceAsSingle ( m_LobbyUIMediator ) ;
51
+ m_Scope . BindInstanceAsSingle ( m_IPUIMediator ) ;
50
52
51
53
var unityAuthenticationInitOptions = new InitializationOptions ( ) ;
52
54
@@ -115,5 +117,11 @@ public void OnStartClicked()
115
117
m_LobbyUIMediator . ToggleJoinLobbyUI ( ) ;
116
118
m_LobbyUIMediator . Show ( ) ;
117
119
}
120
+
121
+ public void OnDirectIPClicked ( )
122
+ {
123
+ m_LobbyUIMediator . Hide ( ) ;
124
+ m_IPUIMediator . Show ( ) ;
125
+ }
118
126
}
119
127
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class IPUIMediator : MonoBehaviour
31
31
[ SerializeField ] UITinter m_JoinTabButtonTabBlockerTinter ;
32
32
33
33
[ SerializeField ] UITinter m_HostTabButtonTinter ;
34
-
34
+
35
35
[ SerializeField ] UITinter m_HostTabButtonHighlightTinter ;
36
36
37
37
[ SerializeField ] UITinter m_HostTabButtonTabBlockerTinter ;
@@ -67,22 +67,6 @@ void Start()
67
67
ToggleCreateIPUI ( ) ;
68
68
}
69
69
70
- void Update ( )
71
- {
72
- if ( Input . touchCount == k_NbTouchesToOpenWindow && AnyTouchDown ( ) ||
73
- m_OpenIPWindowKeyCode != KeyCode . None && Input . GetKeyDown ( m_OpenIPWindowKeyCode ) )
74
- {
75
- if ( m_CanvasGroup . interactable )
76
- {
77
- Hide ( ) ;
78
- }
79
- else
80
- {
81
- Show ( ) ;
82
- }
83
- }
84
- }
85
-
86
70
static bool AnyTouchDown ( )
87
71
{
88
72
foreach ( var touch in Input . touches )
Original file line number Diff line number Diff line change @@ -27,12 +27,15 @@ void ServiceErrorHandler(UnityServiceErrorMessage error)
27
27
var errorMessage = error . Message ;
28
28
if ( error . AffectedService == UnityServiceErrorMessage . Service . Lobby )
29
29
{
30
- if ( ( error . OriginalException as LobbyServiceException ) . Reason == LobbyExceptionReason . LobbyConflict )
30
+ if ( error . OriginalException is LobbyServiceException lobbyServiceException )
31
31
{
32
- // LobbyConflict can have multiple causes. Let's add other solutions here if there's other situations that arise for this.
33
- errorMessage += "\n See logs for possible causes and solution." ;
34
- Debug . LogError ( $ "Got service error { error . Message } with LobbyConflict. Possible conflict cause: Trying to play with two builds on the " +
35
- $ "same machine. Please use command line arg '{ ClientMainMenuState . AuthProfileCommandLineArg } someName' to set a different auth profile.\n ") ;
32
+ if ( lobbyServiceException . Reason == LobbyExceptionReason . LobbyConflict )
33
+ {
34
+ // LobbyConflict can have multiple causes. Let's add other solutions here if there's other situations that arise for this.
35
+ errorMessage += "\n See logs for possible causes and solution." ;
36
+ Debug . LogError ( $ "Got service error { error . Message } with LobbyConflict. Possible conflict cause: Trying to play with two builds on the " +
37
+ $ "same machine. Please use command line arg '{ ClientMainMenuState . AuthProfileCommandLineArg } someName' to set a different auth profile.\n ") ;
38
+ }
36
39
}
37
40
}
38
41
You can’t perform that action at this time.
0 commit comments