File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Packages/mygamedevtools-scene-loader/Tests/Runtime Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public IEnumerator AutomaticTriggers()
2929
3030 Assert . AreEqual ( LoadingState . WaitingToStart , progress . State ) ;
3131
32- yield return new WaitForEndOfFrame ( ) ;
32+ yield return null ;
3333
3434 Assert . AreEqual ( LoadingState . Loading , progress . State ) ;
3535
@@ -51,15 +51,15 @@ public IEnumerator ManualTriggers()
5151
5252 Assert . AreEqual ( LoadingState . WaitingToStart , progress . State ) ;
5353
54- yield return new WaitForEndOfFrame ( ) ;
54+ yield return null ;
5555
5656 Assert . AreEqual ( LoadingState . WaitingToStart , progress . State ) ;
5757
5858 progress . SetState ( LoadingState . Loading ) ;
5959 progress . Report ( 1 ) ;
6060 progress . SetState ( LoadingState . TargetSceneLoaded ) ;
6161
62- yield return new WaitForEndOfFrame ( ) ;
62+ yield return null ;
6363 Assert . AreEqual ( LoadingState . TargetSceneLoaded , progress . State ) ;
6464
6565 progress . SetState ( LoadingState . TransitionComplete ) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public IEnumerator SliderFeedback()
4343 var slider = feedbackSlider . GetComponent < Slider > ( ) ;
4444 Assert . AreEqual ( 0 , slider . value ) ;
4545
46- yield return new WaitForEndOfFrame ( ) ;
46+ yield return null ;
4747
4848 _progress . Report ( .5f ) ;
4949
@@ -59,7 +59,7 @@ public IEnumerator TextFeedback()
5959 var text = feedbackText . GetComponent < Text > ( ) ;
6060 Assert . AreEqual ( "0" , text . text ) ;
6161
62- yield return new WaitForEndOfFrame ( ) ;
62+ yield return null ;
6363
6464 _progress . Report ( .5f ) ;
6565
@@ -76,7 +76,7 @@ public IEnumerator TextMeshFeedback()
7676 var text = feedbackText . GetComponent < TextMeshProUGUI > ( ) ;
7777 Assert . AreEqual ( "0" , text . text ) ;
7878
79- yield return new WaitForEndOfFrame ( ) ;
79+ yield return null ;
8080
8181 _progress . Report ( .5f ) ;
8282
You can’t perform that action at this time.
0 commit comments