File tree Expand file tree Collapse file tree 3 files changed +11
-19
lines changed Expand file tree Collapse file tree 3 files changed +11
-19
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:8b407a8f749be46081c218ec3301374a0a59fdc5abbd670d91af35e2c4055b4b
3
- size 70143
2
+ oid sha256:b934e17a1973dc7998d1d1bdfff5e424458b019f4584ced739718c1afad668b6
3
+ size 81425
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public class ClientMainMenuState : GameStateBehaviour
25
25
26
26
[ SerializeField ] NameGenerationData m_NameGenerationData ;
27
27
[ SerializeField ] LobbyUIMediator m_LobbyUIMediator ;
28
+ [ SerializeField ] IPUIMediator m_IPUIMediator ;
28
29
29
30
[ SerializeField ] CanvasGroup m_MainMenuButtonsCanvasGroup ;
30
31
[ SerializeField ] GameObject m_SignInSpinner ;
@@ -43,6 +44,7 @@ void InjectDependenciesAndInitialize(AuthenticationServiceFacade authServiceFaca
43
44
44
45
m_Scope . BindInstanceAsSingle ( m_NameGenerationData ) ;
45
46
m_Scope . BindInstanceAsSingle ( m_LobbyUIMediator ) ;
47
+ m_Scope . BindInstanceAsSingle ( m_IPUIMediator ) ;
46
48
47
49
var unityAuthenticationInitOptions = new InitializationOptions ( ) ;
48
50
var profile = ProfileManager . Profile ;
@@ -89,5 +91,11 @@ public void OnStartClicked()
89
91
m_LobbyUIMediator . ToggleJoinLobbyUI ( ) ;
90
92
m_LobbyUIMediator . Show ( ) ;
91
93
}
94
+
95
+ public void OnDirectIPClicked ( )
96
+ {
97
+ m_LobbyUIMediator . Hide ( ) ;
98
+ m_IPUIMediator . Show ( ) ;
99
+ }
92
100
}
93
101
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public class IPUIMediator : MonoBehaviour
29
29
[ SerializeField ] UITinter m_JoinTabButtonBorderTinter ;
30
30
31
31
[ SerializeField ] UITinter m_HostTabButtonTinter ;
32
-
32
+
33
33
[ SerializeField ] UITinter m_HostTabButtonBorderTinter ;
34
34
35
35
[ SerializeField ] GameObject m_SignInSpinner ;
@@ -63,22 +63,6 @@ void Start()
63
63
ToggleCreateIPUI ( ) ;
64
64
}
65
65
66
- void Update ( )
67
- {
68
- if ( Input . touchCount == k_NbTouchesToOpenWindow && AnyTouchDown ( ) ||
69
- m_OpenIPWindowKeyCode != KeyCode . None && Input . GetKeyDown ( m_OpenIPWindowKeyCode ) )
70
- {
71
- if ( m_CanvasGroup . interactable )
72
- {
73
- Hide ( ) ;
74
- }
75
- else
76
- {
77
- Show ( ) ;
78
- }
79
- }
80
- }
81
-
82
66
static bool AnyTouchDown ( )
83
67
{
84
68
foreach ( var touch in Input . touches )
You can’t perform that action at this time.
0 commit comments