File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Assets/Scripts/Gameplay/UI Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ void Update()
187187
188188 if ( ! child . ClassListContains ( fadeOutClassName ) )
189189 {
190- StartCoroutine ( ApplyFadeOutWithDelay ( child , 4f ) ) ; // Delay depends on your animation timing
190+ child . AddToClassList ( fadeOutClassName ) ;
191191 child . RegisterCallback < TransitionEndEvent > ( ( e ) =>
192192 {
193193 m_Messages . Remove ( m ) ;
@@ -198,12 +198,6 @@ void Update()
198198 }
199199 }
200200
201- IEnumerator ApplyFadeOutWithDelay ( VisualElement element , float delay )
202- {
203- yield return new WaitForSeconds ( delay ) ; // Wait for the `messageBox` animation to finish
204- element . AddToClassList ( "messageBoxFadeOut" ) ;
205- }
206-
207201 void ShowMessage ( string message )
208202 {
209203 var newMessage = new MessageViewModel ( message , TimeSpan . FromSeconds ( 5 ) ) ;
You can’t perform that action at this time.
0 commit comments