Forum rules - please read before posting.

Checking if there is a speech when gamestate is on cutscene

Hello,

I am hiding all the HUD when the game is paused or there is a cutscene.

I check it using this code:

    private void EnterGameState(GameState gameState)
    {
        if (gameState.ToString() == "Paused" || gameState.ToString() == "Cutscene")
        {
            objectToHide.SetActive(false);
        }
        else if(!isHidden)
        {
            objectToHide.SetActive(true);
        }
    }

The problem is I don't want to hide the hud when the cutscene is a speech.

is it possible to check this? before hiding the hud?

Thanks

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.