IPConnectionWindow.cs - added error case handling in Hide() to prevent exceptions (gives warning and early return).

atc-00
Aaron Carter 3 weeks ago
parent 93f5f5e060
commit d1968054b6
No known key found for this signature in database
GPG Key ID: 521C866B2B64DF6B

@ -54,8 +54,11 @@ namespace Unity.BossRoom.Gameplay.UI
m_CanvasGroup.blocksRaycasts = true;
}
void Hide()
{
void Hide( ) {
if ( !m_CanvasGroup ) {
Debug.LogError( "(!) IPConnectionWindow :: CanvasGroup is not set" ) ;
return ;
}
m_CanvasGroup.alpha = 0f;
m_CanvasGroup.blocksRaycasts = false;
}

Loading…
Cancel
Save