@@ -41,14 +41,14 @@ IEnumerator WaitUntilMainMenuSceneIsLoaded()
41
41
// MainMenu is loaded as soon as Startup scene is launched, validate it is loaded
42
42
yield return new TestUtilities . WaitForSceneLoad ( k_MainMenuSceneName ) ;
43
43
44
- yield return new WaitForEndOfFrame ( ) ;
44
+ yield return null ;
45
45
}
46
46
47
47
IEnumerator WaitUntilCharacterIsSelectedAndReady ( int playerIndex )
48
48
{
49
49
yield return new TestUtilities . WaitForSceneLoad ( k_CharSelectSceneName ) ;
50
50
51
- yield return new WaitForEndOfFrame ( ) ;
51
+ yield return null ;
52
52
53
53
// select a Character
54
54
var seatObjectName = $ "PlayerSeat ({ playerIndex } )";
@@ -61,7 +61,7 @@ IEnumerator WaitUntilCharacterIsSelectedAndReady(int playerIndex)
61
61
uiCharSelectPlayerSeat . OnClicked ( ) ;
62
62
63
63
// selecting a class will enable the "Ready" button, next frame it is selectable
64
- yield return new WaitForEndOfFrame ( ) ;
64
+ yield return null ;
65
65
66
66
// hit ready
67
67
ClientCharSelectState . Instance . OnPlayerClickedReady ( ) ;
@@ -128,13 +128,13 @@ public IEnumerator IP_HostAndDisconnect_Valid([ValueSource(nameof(s_PlayerIndice
128
128
// select "DIRECT IP" button
129
129
clientMainMenuState . OnDirectIPClicked ( ) ;
130
130
131
- yield return new WaitForEndOfFrame ( ) ;
131
+ yield return null ;
132
132
133
133
// select the "HOST" button
134
134
ipHostingUI . OnCreateClick ( ) ;
135
135
136
136
// confirming hosting will initialize the hosting process; next frame the results will be ready
137
- yield return new WaitForEndOfFrame ( ) ;
137
+ yield return null ;
138
138
139
139
// verify hosting is successful
140
140
Assert . That ( m_NetworkManager . IsListening && m_NetworkManager . IsHost ) ;
0 commit comments