Death Screen

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dnblank12
Posts: 14
Joined: Wed Sep 21, 2022 5:46 am

Death Screen

Post by dnblank12 »

Hi again, I'm following this thread: https://www.pixelcrushers.com/phpbb/vie ... f=3&t=2995 for the death screen, but after dying, I can still trigger the menu system using the esc/cancel button. Is there a way to not trigger it? My current setup is Menu System at Main Menu Scene and Death Screen at Practice Area Scene. Or is there a better way to set this up?
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Death Screen

Post by Tony Li »

Hi,

When the death screen comes up, you could disable the Menu System's Pause component. For example:

Code: Select all

FindObjectOfType<Pause>().enabled = false;
When you close the death screen, re-enable the Pause menu:

Code: Select all

FindObjectOfType<Pause>().enabled = true;
dnblank12
Posts: 14
Joined: Wed Sep 21, 2022 5:46 am

Re: Death Screen

Post by dnblank12 »

Thanks again Tony! :D
Post Reply