Skip to content

Scripts.PlayerDeath

Wesley Haws edited this page Jan 1, 2017 · 1 revision

##Scripts - PlayerDeath

###What does this do?


Fades in the player death screen and UI elements when the player's health reachs 0.

###Who/What is this for?


Root GUI Gameobject only.

###Setup


Parameter Type Description
Player Dead bool For debugging only. Disable/Enable death UI element.
Parent Object GameObject Gameobject holding all of the Death UI elements.
Background RawImage Background for death screen.
Title UIText UI element holding the title for the death screen.
Load Save UIText UI element for the load save button.
Reload Level UIText UI element for reloading the level button.
Quit UIText UI element that quits the game
Gui Fade Speed int How fast the GUI will fade in.
Clone this wiki locally