Page 1 of 1

Death Screen

Posted: Wed Nov 02, 2022 5:09 am
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?

Re: Death Screen

Posted: Wed Nov 02, 2022 9:46 am
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;

Re: Death Screen

Posted: Thu Nov 03, 2022 12:20 pm
by dnblank12
Thanks again Tony! :D