Is it better to declare in header when using GameState?

image
image

or

image

what is the better?

:slight_smile:

if (auto GameState = GetWorld()->GetGameState<AJanggiGameState>())
{
    //...
}
1 Like