Third Person Cover Shooter  1.6
CoverShooter.HealthBar Class Reference

Takes a relative health from a Character Health component and displays a bar that displays the value. More...

Inheritance diagram for CoverShooter.HealthBar:

Public Attributes

GameObject Target
 Object whose health is displayed on the health bar. More...
 
float Value = 1.0f
 Current value of the health bar. More...
 
bool HideWhenDead = true
 Determines if the health bar is hidden when the target has no health. More...
 
bool HideWhenNone = false
 Determines if the health bar is hidden when there is no target. More...
 
RectTransform BackgroundRect
 Link to the object that draws the background of the health bar. More...
 
RectTransform FillRect
 Link to the object that draws the health bar. More...
 
Text Name
 Link to the object that will be used to display a character's name. More...
 

Detailed Description

Takes a relative health from a Character Health component and displays a bar that displays the value.

Member Data Documentation

◆ BackgroundRect

RectTransform CoverShooter.HealthBar.BackgroundRect

Link to the object that draws the background of the health bar.

◆ FillRect

RectTransform CoverShooter.HealthBar.FillRect

Link to the object that draws the health bar.

◆ HideWhenDead

bool CoverShooter.HealthBar.HideWhenDead = true

Determines if the health bar is hidden when the target has no health.

◆ HideWhenNone

bool CoverShooter.HealthBar.HideWhenNone = false

Determines if the health bar is hidden when there is no target.

◆ Name

Text CoverShooter.HealthBar.Name

Link to the object that will be used to display a character's name.

◆ Target

GameObject CoverShooter.HealthBar.Target

Object whose health is displayed on the health bar.

◆ Value

float CoverShooter.HealthBar.Value = 1.0f

Current value of the health bar.


The documentation for this class was generated from the following file: