|
DoopelPonger
|
Is essentially a glorified health bar for the player. More...


Public Member Functions | |
| void | Awake () |
| void | OnDestroy () |
Public Attributes | |
| Material [] | materials |
Is essentially a glorified health bar for the player.
Each time the player hit event is fired, this class listens and decreases the health of the player. Once the player's health gets to 0 the player death event will be fired. To number of hit points the player has is determined by the number of meterials provided. If the player has 3 hit points, the materials array should have 3 elements. As the player gets hit, the next material will be switched out. This is used to make the players look beat up when they take damage.
| void CoopPlayerPaddleHealth.Awake | ( | ) |
Initialize all references needed by the paddle health class.
| void CoopPlayerPaddleHealth.OnDestroy | ( | ) |
remove the links to the EventManager whe the player dies.
| Material [] CoopPlayerPaddleHealth.materials |
The materials to use for the paddle. Each time the player gets hit the next material in the array will be used.
1.8.14